/* ── Kimlik ekranları — ortak kabuk (Login / Register / ForgotPassword / ResetPassword) ── */

.login-card { animation: authCardIn 360ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card > * { animation: authFieldIn 320ms ease backwards; }
.login-card > *:nth-child(1) { animation-delay: 60ms; }
.login-card > *:nth-child(2) { animation-delay: 100ms; }
.login-card > *:nth-child(3) { animation-delay: 140ms; }
.login-card > *:nth-child(4) { animation-delay: 180ms; }
.login-card > *:nth-child(5) { animation-delay: 220ms; }
.login-card > *:nth-child(6) { animation-delay: 260ms; }
.login-card > *:nth-child(7) { animation-delay: 300ms; }

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

/* ── Başlık bloğu ── */
.auth-head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 6px;
}

.auth-lead {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Bildirim / hata ── */
.auth-alert {
    font-size: 13px;
    line-height: 1.45;
}
.auth-alert ul { margin-bottom: 0; }

.auth-alert-action {
    display: inline-block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.auth-error {
    display: block;
    font-size: 12px;
    line-height: 1.4;
}

/* ── Alan ipuçları ── */
.auth-hint {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary) !important;
}

.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-secondary);
}
.auth-note i {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--text-muted);
}

/* ── Adım listesi (kayıt akışı önizlemesi) ── */
.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 0 22px;
    padding: 13px 14px;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
}
.auth-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.auth-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.auth-steps li.is-current {
    color: var(--text);
    font-weight: 600;
}
.auth-steps li.is-current .auth-step-num {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* ── Şifre gücü + eşleşme göstergesi ── */
.pw-meter {
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    overflow: hidden;
}
.pw-meter .progress-bar {
    border-radius: 999px;
    transition: width 200ms ease;
}
.pw-meter-label {
    font-size: 11px;
    color: var(--text-secondary) !important;
}
.pw-match {
    font-size: 11px;
    line-height: 1.4;
}
.pw-match-ok { color: var(--success-text) !important; }
.pw-match-bad { color: var(--danger-text) !important; }

/* ── Aksiyonlar ── */
.auth-submit {
    width: 100%;
    padding: 10px;
    font-weight: 600;
}

.auth-alt-btn {
    width: 100%;
    padding: 10px;
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    font-size: 12px;
    color: var(--text-muted);
}

.auth-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.auth-footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}
.auth-footer .btn { font-size: 13px; }

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 8px;
    font-size: 12.5px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition);
}
.auth-link:hover { color: var(--primary-hover); }

.auth-inline-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--transition);
}
.auth-inline-link:hover { color: var(--primary-hover); }

.login-card .form-check-label { cursor: pointer; }

@media (max-width: 575.98px) {
    .login-card { padding: 32px 22px; }
    .login-card .btn,
    .login-card .input-group .btn,
    .login-card .form-control { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-card,
    .login-card > * { animation: none !important; }
}
