/* Giriş, şifremi unuttum ve şifre sıfırlama sayfaları */
.auth-body { background: var(--surface); min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }

.auth-aside {
    display: none; position: relative; overflow: hidden; color: #fff; padding: 2.5rem 3rem;
    background:
        radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 42%),
        radial-gradient(circle at 10% 95%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 40%),
        var(--brand-dark);
}
.auth-aside::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.auth-aside > * { position: relative; }
.auth-aside-brand { display: flex; align-items: center; }
.auth-aside-brand img { height: 36px; width: auto; }
.auth-aside-body { margin: auto 0; max-width: 460px; }
.auth-aside-body h2 { font-size: 2rem; line-height: 1.2; font-weight: 700; color: #fff; margin-bottom: .9rem; letter-spacing: -.01em; }
.auth-aside-body > p { color: rgba(255, 255, 255, .72); font-size: 1rem; margin-bottom: 2rem; }
.auth-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.auth-features li { display: flex; gap: .9rem; align-items: flex-start; color: rgba(255, 255, 255, .72); font-size: .88rem; }
.auth-features li > span { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); font-size: 1.1rem; color: #fff; }
.auth-features strong { display: block; color: #fff; font-size: .95rem; margin-bottom: .1rem; }
.auth-aside-foot { color: rgba(255, 255, 255, .5); font-size: .78rem; }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }
.auth-panel { width: 100%; max-width: 400px; margin: auto 0; }
.auth-mobile-brand { display: flex; align-items: center; margin-bottom: 2rem; }
.auth-mobile-brand img { height: 32px; width: auto; }
.auth-foot-note { margin: 2rem 0 0; font-size: .75rem; color: var(--muted); text-align: center; }

.auth-panel h1 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; letter-spacing: -.01em; }
.auth-lead { color: var(--muted); margin-bottom: 1.75rem; font-size: .9rem; }
.auth-panel .form-label { font-weight: 600; color: var(--ink-2); font-size: .82rem; }
.auth-panel .form-control { height: 46px; font-size: .95rem; border-radius: 10px; }
.auth-field { position: relative; }
.auth-field > .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 1rem; }
.auth-field .form-control { padding-left: 2.6rem; }
.auth-field .form-control.has-toggle { padding-right: 2.9rem; }
.auth-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 38px; height: 38px; border-radius: 8px; color: var(--muted); }
.auth-toggle:hover { background: var(--canvas); color: var(--ink); }
.auth-field .form-control.is-invalid { background-image: none; }
.auth-submit { height: 48px; border-radius: 10px; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.auth-hint { font-size: .78rem; margin-top: .35rem; }
.auth-alert { display: flex; gap: .6rem; align-items: flex-start; border-radius: 10px; padding: .75rem .9rem; font-size: .85rem; margin-bottom: 1.25rem; }
.auth-alert .bi { font-size: 1.05rem; line-height: 1.3; }
.auth-alert.danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.auth-alert.info { background: var(--brand-soft, #eef2ff); color: var(--ink-2); border: 1px solid var(--line); }
.auth-link { font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-back { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; font-size: .85rem; margin-bottom: 1.5rem; }
.auth-back:hover { color: var(--ink); }
.auth-state { text-align: center; }
.auth-state-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.25rem; }
.auth-state-icon.success { background: #dcfce7; color: #15803d; }
.auth-state-icon.info { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
.auth-state-icon.danger { background: #fee2e2; color: #b91c1c; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .5rem; }
.pw-meter span { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .2s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: #dc2626; }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #10b981; }
.pw-meter[data-score="4"] span { background: #059669; }
.pw-rules { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .2rem; font-size: .78rem; color: var(--muted); }
.pw-rules li.ok { color: var(--success); }
.pw-rules .bi { margin-right: .3rem; }

/* Alan altına hata mesajı eklenince simge ve göster/gizle düğmesi kutunun ortasında kalır (46px yükseklik) */
.auth-field > .bi, .auth-toggle { top: 23px; }

/* İki adımlı doğrulama kodu */
.auth-panel .form-control.auth-code { font-family: var(--bs-font-monospace); font-size: 1.15rem; font-weight: 600; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.auth-code::placeholder { letter-spacing: .25em; font-weight: 400; }
.auth-timer { font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (min-width: 992px) {
    .auth-shell { grid-template-columns: minmax(420px, 46%) minmax(0, 1fr); }
    .auth-aside { display: flex; flex-direction: column; gap: 2rem; }
    .auth-mobile-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pw-meter span { transition: none; }
}
