/* ============================================
   EducaHt Login Page Styles
   Professional Split Layout Design
   ============================================ */

:root {
    --navy: #1A1F35;
    --navy-dark: #0F1117;
    --blue: #3498DB;
    --blue-hover: #2980B9;
    --light-gray: #F5F7FA;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-light: #E0E6ED;
    --success: #27AE60;
    --error: #E74C3C;
}

/* ============================================
   Base & Layout
   ============================================ */

body.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* ============================================
   Left Brand Panel
   ============================================ */

.login-brand-panel {
    background: linear-gradient(135deg, var(--navy) 0%, #1C2441 50%, #0F1117 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 50%;
    transform: translate(-50px, 100px);
}

/* Brand Header */
.login-brand-header {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.login-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.login-brand-logo i {
    font-size: 32px;
    color: var(--blue);
}

.login-brand-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.login-brand-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 20px 0;
    color: white;
}

.login-brand-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Brand Features */
.login-brand-features {
    position: relative;
    z-index: 1;
}

.login-brand-feature {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-brand-feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.login-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blue);
}

.login-feature-content {
    flex: 1;
}

.login-feature-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.login-feature-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Brand CTA */
.login-brand-cta {
    position: relative;
    z-index: 1;
}

.login-brand-cta-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.login-brand-cta-link {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.login-brand-cta-link:hover {
    background-color: var(--blue);
    color: white;
}

/* ============================================
   Right Form Panel
   ============================================ */

.login-form-panel {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    margin-bottom: 35px;
}

.login-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px 0;
}

.login-form-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Form Validation Summary */
.login-validation-summary {
    background-color: #FCE8E6;
    border: 1px solid #EFCFD0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--error);
}

.login-validation-summary ul {
    margin: 0;
    padding-left: 20px;
}

.login-validation-summary li {
    margin: 4px 0;
}

/* Form Groups */
.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.login-form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

.login-form-group input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: rgba(52, 152, 219, 0.02);
}

/* Validation Errors */
.login-form-group .text-danger {
    display: block;
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
}

/* Remember Me */
.login-form-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.login-form-remember input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.login-form-remember label {
    margin: 0;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

/* Login Button */
.login-submit-btn {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-submit-btn:hover {
    background-color: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* Form Links */
.login-form-links {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.login-form-link-item {
    font-size: 13px;
    margin-bottom: 10px;
}

.login-form-link-item:last-child {
    margin-bottom: 0;
}

.login-form-link-item a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-form-link-item a:hover {
    color: var(--blue-hover);
    text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-panel {
        min-height: 300px;
        padding: 40px 30px;
    }

    .login-brand-panel::before,
    .login-brand-panel::after {
        display: none;
    }

    .login-brand-header {
        margin-bottom: 25px;
    }

    .login-brand-title {
        font-size: 20px;
    }

    .login-brand-subtitle {
        font-size: 13px;
    }

    .login-brand-features {
        display: none;
    }

    .login-form-panel {
        padding: 40px 30px;
        min-height: auto;
    }

    .login-form-title {
        font-size: 22px;
    }

    .login-form-group input {
        padding: 11px 12px;
        font-size: 16px;
    }

    body.login-page {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .login-brand-panel {
        padding: 30px 20px;
        min-height: auto;
    }

    .login-brand-header {
        margin-bottom: 15px;
    }

    .login-brand-logo {
        font-size: 22px;
    }

    .login-brand-title {
        font-size: 18px;
    }

    .login-form-panel {
        padding: 30px 20px;
    }

    .login-form-title {
        font-size: 20px;
    }

    .login-form-group {
        margin-bottom: 16px;
    }

    .login-submit-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ============================================
   Loading State
   ============================================ */

.login-submit-btn:disabled {
    background-color: #95A5A6;
    cursor: not-allowed;
    opacity: 0.7;
}

.login-submit-btn:disabled:hover {
    background-color: #95A5A6;
    transform: none;
    box-shadow: none;
}

/* ============================================
   Dark Mode Support
   ============================================ */

@media (prefers-color-scheme: dark) {
    body.login-page {
        background-color: var(--navy-dark);
    }

    .login-container {
        background-color: #1E2435;
    }

    .login-form-panel {
        background-color: #1E2435;
    }

    .login-form-title {
        color: white;
    }

    .login-form-subtitle {
        color: rgba(255, 255, 255, 0.7);
    }

    .login-form-group label {
        color: rgba(255, 255, 255, 0.9);
    }

    .login-form-group input {
        background-color: #2A3245;
        border-color: #3A4556;
        color: white;
    }

    .login-form-group input:focus {
        background-color: rgba(52, 152, 219, 0.15);
        border-color: var(--blue);
    }

    .login-form-remember label {
        color: rgba(255, 255, 255, 0.8);
    }

    .login-form-links {
        border-top-color: #3A4556;
    }
}
