/* ==========================================================================
   Auth Pages — Spermageddon
   Login, Register, Forgot Password
   ========================================================================== */

.auth-body {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

.auth-container {
    display: flex;
    max-width: 900px;
    width: 100%;
    margin: var(--space-md);
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* ═══ Sidebar Panel ═══ */

.auth-sidebar {
    width: 320px;
    background: var(--color-bg-dark);
    color: #ccc;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.auth-sidebar h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.auth-sidebar p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.auth-sidebar .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-sidebar .feature-list li {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #333;
    color: #aaa;
}

.auth-sidebar .feature-list li:last-child { border: none; }

/* ═══ Form Panel ═══ */

.auth-form-panel {
    flex: 1;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
    text-decoration: none;
    color: var(--color-heading);
}

.auth-logo .logo-mark {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.auth-logo .logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.auth-form-panel h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* ═══ Form Fields ═══ */

.auth-form .form-group {
    margin-bottom: 1.1rem;
}

.auth-form .form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    border: 1px solid var(--color-card-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.auth-form .form-group input.error {
    border-color: var(--color-error);
}

.field-error {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: 0.25rem;
}

/* ═══ Remember / Options Row ═══ */

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.auth-options a {
    color: var(--color-accent);
    font-weight: 500;
}

/* ═══ Submit Button ═══ */

.auth-form .btn-submit {
    width: 100%;
    padding: 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--color-heading);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.auth-form .btn-submit:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ═══ Auth Links ═══ */

.auth-links {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-rule);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
}

.auth-links a {
    color: var(--color-accent);
    font-weight: 500;
}

/* ═══ Error / Success Messages ═══ */

.auth-message {
    padding: 0.7rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    border: 1px solid;
}

.auth-message-error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-color: #D4A0A0;
}

.auth-message-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-color: #B8D8B8;
}

/* ═══ Password Strength ═══ */

.password-strength {
    margin-top: 0.4rem;
    height: 3px;
    background: var(--color-rule);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background 0.3s;
    border-radius: 2px;
}

.strength-weak    .password-strength-bar { width: 33%; background: var(--color-error); }
.strength-fair    .password-strength-bar { width: 66%; background: #D4A020; }
.strength-strong  .password-strength-bar { width: 100%; background: var(--color-success); }

/* ═══ Responsive ═══ */

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        margin: var(--space-sm);
    }
    
    .auth-sidebar {
        width: 100%;
        padding: var(--space-md);
    }
    
    .auth-sidebar .feature-list { display: none; }
    
    .auth-form-panel {
        padding: var(--space-md);
    }
}
