/**
 * Auth sayfaları (login, logout, register) – tema uyumlu tasarım
 * hn_vergi_m ile aynı renk paleti ve tipografi
 */

:root {
    --auth-primary: #174ea6;
    --auth-primary-hover: #123d86;
    --auth-primary-soft: rgba(23, 78, 166, 0.08);
    --auth-text: #10233f;
    --auth-text-secondary: #506179;
    --auth-text-muted: #71839d;
    --auth-border: #d7e2ee;
    --auth-bg: #f3f7fb;
    --auth-card-bg: rgba(255, 255, 255, 0.96);
    --auth-shadow: 0 12px 32px rgba(16, 35, 63, 0.08);
    --auth-radius: 0.625rem;
    --auth-font: 'Google Sans Flex', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 25%, #f0f0f0 100%);
    font-family: var(--auth-font);
}

.auth-page::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 28rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(23, 78, 166, 0.04), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(24, 98, 184, 0.03), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
}

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

.auth-brand h1,
.auth-brand h1 span {
    color: var(--auth-text) !important;
}

.auth-brand h1 span.text-white\/70 {
    color: var(--auth-text-muted) !important;
}

.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 2rem;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2.5rem;
    }
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.025em;
    margin: 0 0 0.25rem;
}

.auth-card-desc {
    font-size: 0.9375rem;
    color: var(--auth-text-secondary);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.auth-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #2460bd 100%);
    border: none;
    border-radius: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(23, 78, 166, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, var(--auth-primary-hover) 0%, #1f539f 100%);
    box-shadow: 0 12px 28px rgba(23, 78, 166, 0.22);
}

.auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--auth-text) !important;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--auth-border);
    border-radius: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.auth-btn-secondary:hover {
    border-color: #bfd0e2;
    background: #fff;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 1rem;
    color: var(--auth-text);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input:focus {
    outline: none;
    border-color: rgba(23, 78, 166, 0.4);
    box-shadow: 0 0 0 4px rgba(23, 78, 166, 0.1);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--auth-text-muted);
    pointer-events: none;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
}

.auth-footer a {
    color: inherit;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--auth-primary);
}

.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #166534;
}

.auth-alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1e40af;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
    .auth-page::before {
        animation: none;
    }
}
