/* Giriş, kayıt, parola sıfırlama — Sivil Memurlar (v3) */
body.auth-page {
    --auth-bg: #070b16;
    --auth-card: rgba(11, 17, 32, 0.92);
    --auth-line: rgba(148, 163, 184, 0.18);
    --auth-ink: #f1f5f9;
    --auth-muted: #94a3b8;
    --auth-accent: #22d3ee;
    --auth-accent-2: #a78bfa;
    --auth-gold: #e2c47e;
    --auth-field: rgba(15, 23, 42, 0.85);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 6.25rem !important;
    padding-bottom: 4.5rem;
    position: relative;
    color: var(--auth-ink);
    background:
        radial-gradient(900px 520px at 12% 8%, rgba(34, 211, 238, 0.16), transparent 60%),
        radial-gradient(800px 520px at 88% 92%, rgba(167, 139, 250, 0.14), transparent 60%),
        var(--auth-bg) !important;
}
body.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
body.auth-page nav.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; }
body.auth-page .auth-shell,
body.auth-page .site-footer { position: relative; z-index: 2; }

.auth-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem 2rem;
    width: 100%;
}

/* İki sütun: tanıtım + form */
.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    width: min(100%, 64rem);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    background: var(--auth-card);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.auth-split--register { grid-template-columns: minmax(0, 0.85fr) minmax(0, 33rem); width: min(100%, 70rem); }

.auth-aside {
    position: relative;
    padding: 2.4rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background:
        radial-gradient(500px 300px at 0% 0%, rgba(34, 211, 238, 0.22), transparent 70%),
        radial-gradient(420px 320px at 100% 100%, rgba(167, 139, 250, 0.2), transparent 70%),
        linear-gradient(160deg, #0b1630, #0a1022);
    border-right: 1px solid var(--auth-line);
}
.auth-aside-brand { display: flex; align-items: center; gap: 0.85rem; }
.auth-aside-logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 6px 20px rgba(34, 211, 238, 0.25); }
.auth-aside-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--auth-accent);
}
.auth-aside-motto { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--auth-muted); }
.auth-aside-title {
    margin: 0.6rem 0 0;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.12;
    color: #fff;
    letter-spacing: 0.01em;
}
.auth-aside-lead { margin: 0; font-size: 0.92rem; line-height: 1.6; color: #cbd5e1; }
.auth-aside-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.auth-aside-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.84rem; line-height: 1.45; color: var(--auth-muted); }
.auth-aside-list strong { display: block; color: var(--auth-ink); font-size: 0.9rem; margin-bottom: 0.1rem; }
.auth-aside-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 11px;
    color: var(--auth-accent);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
}
.auth-aside-note {
    margin: auto 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--auth-line);
    font-size: 0.72rem;
    line-height: 1.5;
    color: #64748b;
}

/* Form kartı */
.auth-card {
    background: transparent;
    padding: 2.4rem 2.2rem;
    text-align: left;
}
/* Tek kart sayfaları (şifremi unuttum vb.) */
.auth-shell > .auth-card {
    width: min(100%, 27rem);
    border-radius: 20px;
    border: 1px solid var(--auth-line);
    background: var(--auth-card);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.65);
}
.auth-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--auth-accent);
}
.auth-card h2 {
    margin: 0 0 0.45rem;
    font-family: var(--font-body, 'Manrope', 'Segoe UI', sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    text-align: left;
}
.auth-lead { color: var(--auth-muted); font-size: 0.9rem; line-height: 1.55; margin: 0 0 1.4rem; }

.auth-alert {
    display: flex;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: left;
}
.auth-alert--success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #d1fae5; }
.auth-alert--error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #fee2e2; }
.auth-alert--error::before { content: '!'; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 800; font-size: 0.75rem; }

/* Alanlar */
.auth-field { margin-bottom: 1rem; min-width: 0; }
.auth-form label,
.auth-field > label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: #e2e8f0;
}
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.auth-inline-link { font-size: 0.78rem; font-weight: 700; color: var(--auth-accent); text-decoration: none; }
.auth-inline-link:hover { text-decoration: underline; }

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: var(--auth-field);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-input:hover { border-color: rgba(148, 163, 184, 0.42); }
.auth-input:focus-within {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
    background: rgba(15, 23, 42, 0.95);
}
.auth-input-ico { flex: 0 0 auto; display: inline-flex; padding-left: 0.85rem; color: #64748b; }
.auth-input:focus-within .auth-input-ico { color: var(--auth-accent); }
.auth-form .auth-input input,
.auth-form .auth-input select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0.8rem 0.85rem 0.8rem 0.65rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--auth-ink);
    font: inherit;
    font-size: 0.93rem;
    outline: none;
    box-shadow: none;
}
.auth-form .auth-input input::placeholder { color: #64748b; }
.auth-form .auth-input select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.2rem; }
.auth-input--select::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.auth-form select option { color: #0f172a; background: #f8fafc; }
.auth-input--with-select select {
    flex: 0 0 auto;
    width: auto;
    margin: 0.3rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: 999px !important;
    background: rgba(148, 163, 184, 0.14) !important;
    font-size: 0.76rem !important;
    font-weight: 700;
    color: #e2e8f0 !important;
}
.auth-eye {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-right: 0.15rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}
.auth-eye:hover, .auth-eye:focus-visible { color: var(--auth-ink); background: rgba(148, 163, 184, 0.12); outline: none; }

.auth-help { margin: 0.35rem 0 0; font-size: 0.74rem; line-height: 1.4; color: #64748b; }
.auth-help.is-ok { color: #34d399; }
.auth-help.is-bad { color: #f87171; }
.auth-caps { margin: 0.4rem 0 0; font-size: 0.76rem; font-weight: 700; color: #fbbf24; }

.auth-meter { display: block; width: 100%; height: 4px; margin-top: 0.5rem; border-radius: 99px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
.auth-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: #64748b; transition: width 0.2s ease, background 0.2s ease; }
.auth-meter.is-weak span { background: #ef4444; }
.auth-meter.is-fair span { background: #f59e0b; }
.auth-meter.is-good span { background: #22d3ee; }
.auth-meter.is-strong span { background: #10b981; }

/* Kayıt adımları */
.auth-step { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.auth-step legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--auth-muted);
}
.auth-step legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.72rem;
    letter-spacing: 0;
    color: #0f172a;
    background: linear-gradient(180deg, #67e8f9, #22d3ee);
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.85rem; }

.auth-consent {
    display: flex !important;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0.2rem 0 1.1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--auth-line);
    background: rgba(15, 23, 42, 0.5);
    font-weight: 500 !important;
    font-size: 0.82rem !important;
    line-height: 1.5;
    color: #cbd5e1 !important;
    cursor: pointer;
}
.auth-consent input { width: 1.05rem; height: 1.05rem; margin: 0.15rem 0 0; accent-color: #22d3ee; flex: 0 0 auto; }
.auth-consent a { color: var(--auth-accent); font-weight: 700; }

/* Düğmeler */
.auth-submit,
.auth-form button[type="submit"],
.auth-success-cta {
    position: relative;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #04121a;
    background: linear-gradient(180deg, #67e8f9 0%, #22d3ee 55%, #06b6d4 100%);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.auth-submit:hover, .auth-form button[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(34, 211, 238, 0.36); }
.auth-submit:focus-visible { outline: 3px solid rgba(103, 232, 249, 0.6); outline-offset: 2px; }
.auth-submit.is-busy { opacity: 0.75; cursor: progress; transform: none; }
.auth-submit.is-busy::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border-radius: 50%;
    border: 2px solid rgba(4, 18, 26, 0.3);
    border-top-color: #04121a;
    animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.3rem 0 1rem; font-size: 0.74rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.12em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-line); }
.auth-alt { display: grid; gap: 0.55rem; }
.auth-alt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.auth-alt-btn:hover { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.45); }
.auth-alt-btn--primary { border-color: rgba(167, 139, 250, 0.5); color: #ede9fe; background: rgba(139, 92, 246, 0.14); }
.auth-alt-btn--primary:hover { background: rgba(139, 92, 246, 0.24); border-color: rgba(167, 139, 250, 0.7); }
.auth-switch { margin: 1.1rem 0 0; text-align: center; font-size: 0.86rem; color: var(--auth-muted); }
.auth-switch a { color: var(--auth-accent); font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Eski sayfalarla uyum (şifremi unuttum, doğrulama) */
.auth-form > input[type="text"],
.auth-form > input[type="email"],
.auth-form > input[type="password"],
.auth-form > select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: var(--auth-field);
    color: var(--auth-ink);
    font: inherit;
}
.auth-form > input:focus, .auth-form > select:focus { outline: none; border-color: var(--auth-accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15); }
.auth-form-links { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; align-items: center; text-align: center; }
.auth-form-links a { color: var(--auth-accent); text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.auth-form-links a:hover { text-decoration: underline; }
.auth-success-cta { display: inline-block; text-decoration: none !important; text-align: center; }

@media (max-width: 900px) {
    .auth-split, .auth-split--register { grid-template-columns: 1fr; width: min(100%, 34rem); }
    .auth-aside { border-right: 0; border-bottom: 1px solid var(--auth-line); padding: 1.6rem 1.4rem; gap: 0.75rem; }
    .auth-aside-title { font-size: 1.55rem; margin-top: 0.2rem; }
    .auth-aside-list { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .auth-aside-list li span:last-child { font-size: 0.78rem; }
    .auth-aside-note { display: none; }
}
@media (max-width: 640px) {
    body.auth-page { padding-top: 5.5rem !important; padding-bottom: 3.75rem; }
    .auth-shell { padding: 0.5rem 0.75rem 1.5rem; }
    .auth-split { border-radius: 18px; }
    .auth-card { padding: 1.5rem 1.15rem; }
    .auth-aside { padding: 1.25rem 1.15rem; }
    .auth-aside-lead { display: none; }
    .auth-aside-list { grid-template-columns: 1fr; }
    .auth-aside-list li:nth-child(n+3) { display: none; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-form .auth-input input, .auth-form .auth-input select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-submit, .auth-input { transition: none; }
}

/* Marka/eski kurallara karşı koruma */
.auth-form .auth-input .auth-eye {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 0.15rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent !important;
    box-shadow: none !important;
    color: #94a3b8;
    transform: none !important;
}
.auth-form .auth-input .auth-eye:hover,
.auth-form .auth-input .auth-eye:focus-visible { background: rgba(148, 163, 184, 0.12) !important; color: #f1f5f9 !important; }
/* Genel buton kuralı (brand.css .login-form button) göz düğmesini koyu ve dolgulu yapmasın */
.auth-form .auth-input .auth-eye { color: #94a3b8 !important; padding: 0 !important; font-size: inherit !important; }
.auth-form .auth-meter + .auth-help,
.auth-form .auth-input + .auth-help { display: block; margin-bottom: 0.7rem; }
.auth-form .auth-input.auth-input--with-select select {
    flex: 0 0 auto;
    width: auto;
}
body.auth-page .site-footer-note {
    position: fixed;
    left: 50%;
    bottom: 0.6rem;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.55);
    pointer-events: none;
    white-space: nowrap;
}
@media (max-width: 640px) { body.auth-page .site-footer-note { display: none; } }

/* Tek sütun: yalnızca form kartı (v4) */
.auth-split.auth-split--single { grid-template-columns: minmax(0, 1fr); width: min(100%, 28rem); }
.auth-split.auth-split--single.auth-split--register { width: min(100%, 36rem); }
@media (max-width: 900px) {
    .auth-split.auth-split--single { width: min(100%, 28rem); }
    .auth-split.auth-split--single.auth-split--register { width: min(100%, 36rem); }
}
/* Standart site menüsü bu sayfalarda da aynı görünsün */
body.auth-page #site-nav, body.auth-page nav.site-nav { z-index: 1100; }
.auth-help--note { color: #fbbf24; }

/* Kullanıcı adı önerileri */
.auth-suggest { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.auth-suggest__chip { font: inherit; font-size: 0.76rem; line-height: 1.2; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid rgba(201, 169, 98, 0.55); background: rgba(201, 169, 98, 0.12); color: #e9d8a6; cursor: pointer; }
.auth-suggest__chip:hover, .auth-suggest__chip:focus-visible { background: rgba(201, 169, 98, 0.25); outline: none; }
