/* Reset & Form Styles specifically for Login */
.login-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.login-split-container {
    display: flex;
    flex: 1;
    width: 100%;
    position: relative;
    background: url('../images/school_boy_walking.png') no-repeat 30% center;
    background-size: cover;
}
.login-split-container::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    /* Left side is semi-transparent white to show image behind text, right side is solid white */
    background: linear-gradient(to right, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 65%, rgba(255,255,255,1) 85%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}
.login-split-container::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 15%);
    z-index: 1;
    pointer-events: none;
}

.login-hero {
    display: none;
}
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: transparent;
    position: relative;
    z-index: 2;
}
.login-form-container {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.04), 0 4px 15px rgba(0,0,0,0.02);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Styles < 1024px */
@media (max-width: 1023px) {
    .login-split-container {
        display: block;
        background: #ffffff;
    }
    .login-split-container::before {
        display: none;
    }
    .login-form-side {
        display: block;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        background: white;
    }
    .login-form-container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 40px 24px !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: white;
    }
}

/* Desktop >= 1024px */
@media (min-width: 1024px) {
    body, html {
        min-height: 100%;
    }
    .login-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 50%;
        position: relative;
        padding: 0 60px !important;
        box-sizing: border-box !important;
        z-index: 2;
    }
    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 500px;
    }
    .login-form-side {
        width: 50%;
        height: 100% !important;
        padding: 0 80px 0 20px !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }
    .login-form-container {
        max-width: 480px; /* matched to reference image width */
        border: 1px solid #f8fafc;
        border-radius: 20px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.03), 0 10px 25px rgba(0,0,0,0.02);
        padding: 40px !important;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.icon-badge-card {
    width: 64px;
    height: 64px;
    background: #f0f5ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #1b4fed;
    font-size: 2rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    text-align: center;
}
.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 24px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.login-input-group {
    margin-bottom: 20px;
}
.login-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}
.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.login-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1.3rem;
    pointer-events: none;
    transition: color 0.3s;
}
.login-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
}
.login-input::placeholder {
    color: #cbd5e1;
}
.login-input:focus {
    border-color: #1b4fed;
    box-shadow: 0 0 0 4px rgba(27, 79, 237, 0.1);
    outline: none;
}
.login-input:focus + .input-icon, .login-input:focus ~ .input-icon {
    color: #1b4fed;
}
.login-input-wrapper .toggle-password {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}
.login-input-wrapper .toggle-password:hover {
    color: #1b4fed;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}
.remember-me-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1b4fed;
    border-radius: 4px;
    cursor: pointer;
}
.forgot-password-link {
    font-size: 0.85rem;
    color: #1b4fed;
    text-decoration: none;
    font-weight: 700;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #1b4fed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-btn:hover {
    background: #1240cc;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}
.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px solid #e2e8f0;
    z-index: 0;
}
.divider span {
    background: white;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.register-prompt {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}
.register-prompt a {
    color: #1b4fed;
    text-decoration: none;
    font-weight: 800;
}

.google-btn-wrapper {
    margin-top: 15px;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}
.google-btn-wrapper:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.footer-text {
    margin-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}
.footer-text a {
    color: #1b4fed;
    font-weight: 700;
    text-decoration: none;
}
.footer-text .copyright {
    margin-top: 8px;
    color: #94a3b8;
}

/* Global Features Footer */
.global-features-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 80px 80px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    border-top: 1px solid #f1f5f9;
}
.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}
.hero-feature-icon {
    color: #1b4fed;
    font-size: 2.2rem;
    font-weight: 300;
}
.hero-feature-text h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}
.hero-feature-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
    font-weight: 500;
}
@media (max-width: 1023px) {
    .global-features-footer {
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
    }
    .hero-feature {
        width: 100%;
        flex: none;
    }
}
@media (min-width: 1024px) {
    .global-features-footer {
        display: none !important;
    }
}
