/* Modern Login Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4CAF50;
    --secondary-color: #3498db;
    --dark-blue: #2c3e50;
    --light-blue: #3498db;
    --light-green: #81C784;
    --text-color: #333;
    --light-text: #eee;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #1a2a3a;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.container {
    display: flex;
    width: 80%;
    max-width: 1200px;
    height: 85vh;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.education-image {
    flex: 1;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.school-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.school-welcome {
    margin-bottom: 30px;
}

.school-welcome h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
    color: white;
}

.school-welcome h2 {
    font-size: 18px;
    font-weight: 500;
    color: #81C784;
    margin-bottom: 5px;
}

.school-welcome p {
    font-size: 16px;
    color: #aaa;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.feature-card i {
    font-size: 24px;
    color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 14px;
    color: #aaa;
}

.school-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.form-section {
    flex: 1;
    background-color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
}

.logo-text p {
    font-size: 14px;
    color: #888;
}

.welcome-text {
    margin-bottom: 30px;
}

.welcome-text .subtitle {
    font-size: 18px;
    color: #666;
}

/* Login Type Selector */
.login-type-selector {
    display: flex;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.login-type-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.login-type-option.active {
    background-color: var(--primary-color);
    background: linear-gradient(45deg, #4CAF50, #81C784);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    display: inline-block;
}

.remember-me input:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-text {
    font-size: 14px;
    color: #666;
}

.forgot-password {
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(45deg, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn:hover {
    background: linear-gradient(45deg, #3d9140, #6eb971);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.login-btn i {
    font-size: 14px;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-button a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button a:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.error-message {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        width: 95%;
        height: auto;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .education-image {
        padding: 30px;
    }
    
    .feature-cards {
        margin: 20px 0;
    }
    
    .form-section {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        margin-bottom: 20px;
    }
    
    .welcome-text {
        margin-bottom: 20px;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .login-btn {
        padding: 12px;
    }
}