/* ── Auth Page Styles ─────────────────────────────────────────────── */
.auth-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: var(--card-bg, #1a1f2e);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
    animation: authFadeUp 0.45s ease both;
}

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

.auth-header { text-align: center; margin-bottom: 2rem; }

.auth-logo { font-size: 1.6rem; margin-bottom: 1rem; display: inline-block; }

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.25rem 0;
    background: linear-gradient(135deg, #e0e7ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Groups */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #ccc);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--input-bg, rgba(255,255,255,0.05));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 0.6rem;
    color: var(--text-primary, #f0f0f0);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.form-group.has-error .form-input { border-color: #ef4444; }

.form-error {
    display: block;
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-hint {
    display: block;
    color: var(--text-muted, #888);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

/* Password wrapper */
.input-password-wrapper { position: relative; }
.input-password-wrapper .form-input { padding-right: 3rem; }

.btn-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #888);
    padding: 0;
    display: flex;
    transition: color 0.2s;
}
.btn-password-toggle:hover { color: #a78bfa; }

/* Password Strength Bar */
.password-strength {
    margin-top: 0.5rem;
    display: none;
    align-items: center;
    gap: 0.6rem;
}
.password-strength.visible { display: flex; }

.strength-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

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

.strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Password Match */
.match-indicator {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Terms */
.terms-hint {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Submit Button */
.btn-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    border: none;
    border-radius: 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    letter-spacing: 0.02em;
}

.btn-auth:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

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

.auth-link { color: #a78bfa; text-decoration: none; transition: color 0.2s; }
.auth-link:hover { color: #c4b5fd; text-decoration: underline; }

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted, #888);
}

/* Light mode overrides */
[data-theme="light"] .auth-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .form-input {
    background: #f8f9ff;
    border-color: #d1d5db;
    color: #111827;
}

[data-theme="light"] .auth-title {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .strength-track {
    background: rgba(0,0,0,0.1);
}
