/* ============================================
   NEXUS 2030 — LOGIN PAGE
   ============================================ */

body.login-page {
    min-height: 100vh;
    background: #f8f9fc;
}

/* MAIN */
.login-main {
    min-height: 100vh;
    padding-top: 72px;
}

.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 72px);
}

/* LEFT — BRAND SIDE */
.login-brand-side {
    background: linear-gradient(135deg, #081440 0%, #0f2060 50%, #1a3a8f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.brand-logo-lg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 24px rgba(255,107,0,0.35);
}

.brand-text-lg {
    display: flex;
    flex-direction: column;
}

.brand-text-lg .brand-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1;
}

.brand-text-lg .brand-year {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
}

.login-brand-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.login-brand-content p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.login-feature span:first-child {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* RIGHT — FORM SIDE */
.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #f8f9fc;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(8,20,64,0.10);
    border: 1px solid rgba(8,20,64,0.06);
}

/* TABS */
.login-tabs {
    display: flex;
    background: #f0f4ff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 0.65rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-tab.active {
    background: #ffffff;
    color: #081440;
    box-shadow: 0 2px 8px rgba(8,20,64,0.10);
}

/* FORM */
.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.login-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #081440;
    background: #f8f9fc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-form .form-input:focus {
    outline: none;
    border-color: #ff6b00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.08);
}

.input-password {
    position: relative;
}

.input-password .form-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

/* OPTIONS */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.85rem;
    color: #ff6b00;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* BUTTONS */
.btn-full {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

.login-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
    color: #94a3b8;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e2e8f0;
}

.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.btn-secondary-login {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary-login:hover {
    border-color: #081440;
    color: #081440;
}

/* TERMS */
.login-terms {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}

/* SUCCESS */
.login-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-success h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #081440;
    margin-bottom: 0.5rem;
}

.login-success p {
    color: #64748b;
    font-size: 0.95rem;
}

/* FORM ROW */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-split {
        grid-template-columns: 1fr;
    }

    .login-brand-side {
        padding: 3rem 2rem;
        min-height: 280px;
    }

    .login-brand-content h2 {
        font-size: 1.4rem;
    }

    .login-features {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
