/* ========================================
   AI Muhasebe - Giriş ve Şifre Sayfaları
   Stiller kütüphanesi üzerine kurulu, saf CSS.
   ======================================== */

/* ── Sayfa arka planı ─────────────────────── */
.auth-body {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
}

/* ── Kart ─────────────────────────────────── */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 430px;
    padding: 2.5rem;
    animation: auth-card-in 0.4s ease-out;
}

@keyframes auth-card-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ikon ────────────────────────────── */
.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* ── Başlık ────────────────────────────────── */
.auth-card .auth-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem;
}

/* ── Alan aralığı ─────────────────────────── */
.auth-card .field {
    margin-bottom: 1.125rem;
}

/* ── Input override (auth bağlam) ─────────── */
.auth-card .input {
    border-radius: 8px;
    font-size: 0.9rem;
}

.auth-card .input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ── Input-wrap içindeki ikon hizalama ────── */
.auth-card .input-wrap .input-icon {
    color: #64748b;
    width: 18px;
    height: 18px;
}

/* ── Captcha kutusu ───────────────────────── */
.captcha-box {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.captcha-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #0f172a;
    user-select: none;
    font-family: 'Courier New', monospace;
}

.captcha-box .input {
    max-width: 100px;
    text-align: center;
    font-weight: 600;
}

/* ── Beni hatırla satırı ──────────────────── */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

/* ── Şifremi unuttum linki ────────────────── */
.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: color 0.18s ease;
}

.forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ── Gönder butonu override ───────────────── */
.auth-card .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.auth-card .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* ── Uyarı / Hata bannerları ──────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.auth-alert.is-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.auth-alert.is-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

.auth-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Şifre sıfırlama ikon ────────────────── */
.auth-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* ── Bilgi kutusu ─────────────────────────── */
.info-box {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
    color: #1d4ed8;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-box i {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
}

/* ── Geri dön linki ──────────────────────── */
.back-link {
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.18s ease;
}

.back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .captcha-box {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .captcha-box .input {
        max-width: 100%;
    }

    .auth-remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
