/* İbanat giriş / kayıt / kurulum ekranları — panelle aynı dil, sade. */
:root {
    --ink: #17142e; --ink-2: #413d63; --muted: #6d6990;
    --indigo: #29218a; --indigo-deep: #1b1566; --indigo-night: #140f4f; --indigo-50: #efedfb;
    --orange: #f4582a; --orange-deep: #d9441a; --orange-50: #fff0e9;
    --lime: #8bc840; --lime-deep: #4e8a12; --lime-50: #f0f8e4;
    --paper: #f5f4fa; --line: #e5e2f1; --line-2: #d4d0e8; --danger: #c92a2a;
    --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
    --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body.au { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
:where(.au a) { color: var(--indigo); }
:where(.au button, .au input, .au select) { font: inherit; }
.au img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

.au-shell { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; min-height: 100vh; }
.au-brand { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 36px 40px; background: var(--indigo-night); color: #fff; overflow: hidden; }
.au-brand__logo img { width: 132px; height: auto; filter: brightness(0) invert(1); }
.au-brand__copy { margin-top: auto; position: relative; z-index: 1; }
.au-brand__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: .98; letter-spacing: -.035em; }
.au-brand ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #cfcbef; }
.au-brand li { display: flex; align-items: center; gap: 8px; }
.au-brand li i { color: var(--lime); }
.au-brand__chevs { position: absolute; right: -40px; top: 90px; display: flex; flex-direction: column; gap: 6px; opacity: .9; }
.au-brand__chevs span { display: flex; gap: 10px; font-size: 64px; transform: translateX(calc(var(--i, 0) * 1px)); }
.au-brand__chevs span:nth-child(2) { margin-left: 50px; }
.au-brand__chevs span:nth-child(3) { margin-left: 100px; opacity: .6; }
.au-brand__chevs span:nth-child(4) { margin-left: 150px; opacity: .3; }
.au-brand__chevs b { width: .55em; height: .9em; clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%); }
.au-brand__chevs b:first-child { background: var(--orange); }
.au-brand__chevs b:last-child { background: var(--lime); }

.au-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.au-mobile-logo { display: none; }
.au-card { width: min(440px, 100%); }
.au-card--wide { width: min(560px, 100%); }
.au-step { margin: 0 0 6px; color: var(--orange-deep); font-weight: 700; font-size: 13px; }
.au-title { margin: 0; font-family: var(--display); font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; color: var(--indigo-deep); }
.au-lead { margin: 8px 0 0; color: var(--muted); }
.au-form { margin-top: 24px; display: grid; gap: 14px; }
.au-field { display: grid; gap: 6px; }
.au-field > label, .au-label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.au-input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.au-input:focus, .au-prefix:focus-within { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px var(--indigo-50); }
.au-input[aria-invalid="true"] { border-color: var(--danger); }
.au-prefix { display: flex; align-items: center; min-height: 50px; padding-left: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.au-prefix span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.au-prefix input { flex: 1; min-width: 0; border: 0; padding: 12px 14px 12px 1px; background: none; font-weight: 700; color: var(--indigo-deep); }
.au-prefix input:focus { outline: none; }
.au-help { margin: 0; color: var(--muted); font-size: 12.5px; }
.au-help.is-ok, .slug-status.is-ok { color: var(--lime-deep); }
.au-help.is-error, .slug-status.is-error { color: var(--danger); }
.au-error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.au-password { position: relative; }
.au-password .au-input { padding-right: 48px; }
.au-password button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.au-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.au-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--indigo); }
.au-btn, .onboarding-finish { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 14px; background: var(--indigo); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.au-btn:hover, .onboarding-finish:hover { background: var(--indigo-deep); }
.au-btn--orange { background: var(--orange); }
.au-btn--orange:hover { background: var(--orange-deep); }
.au-btn--ghost { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line-2); }
.au-btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--indigo); }
.au-btn:disabled { opacity: .6; cursor: progress; }
.au-alt { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.au-alt a { font-weight: 700; text-decoration: none; }
.au-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.au-row a { font-weight: 700; text-decoration: none; }
.au-captcha { min-height: 78px; }
.au-below { width: min(440px, 100%); margin-top: 14px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* Ortak hata/başarı alanı (partials.form-feedback) */
.ux-error-summary { padding: 12px 14px; border-radius: 12px; background: #fff0f0; color: var(--danger); font-size: 14px; }
.ux-error-summary strong { display: block; margin-bottom: 4px; }
.ux-error-summary ul { margin: 0; padding-left: 18px; }
.ux-error-summary a { color: inherit; }
.ux-error-summary--compact { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ux-form-success { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--lime-50); color: var(--lime-deep); font-weight: 600; font-size: 14px; }
.ux-field-error { margin: 0; color: var(--danger); font-size: 13px; }

/* Kurulum (onboarding) */
.au-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #ecebf5; }
.au-seg label { flex: 1 1 auto; position: relative; }
.au-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.au-seg span { display: block; padding: 8px 10px; border-radius: 9px; text-align: center; font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.au-seg input:checked + span { background: #fff; color: var(--indigo); box-shadow: 0 2px 8px -4px rgba(27, 21, 102, .4); }
.au-seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent); }
.au-iban { font-family: var(--mono); font-size: 16px; letter-spacing: .04em; }
.au-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.au-added { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.au-added li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.au-added li i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--indigo-night); flex: 0 0 auto; }
.au-added strong { display: block; font-size: 14px; }
.au-added small { font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
.au-done { display: grid; gap: 8px; margin-top: 16px; }
.au-empty { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; text-align: center; }
details.au-more summary { cursor: pointer; color: var(--indigo); font-weight: 700; font-size: 13.5px; }
details.au-more[open] summary { margin-bottom: 10px; }

@media (max-width: 900px) {
    .au-shell { grid-template-columns: 1fr; }
    .au-brand { display: none; }
    .au-main { justify-content: flex-start; padding: 22px 16px 40px; }
    .au-mobile-logo { display: block; align-self: flex-start; margin: 0 0 28px; }
    .au-mobile-logo img { width: 112px; height: auto; }
    .au-title { font-size: 28px; }
}
@media (max-width: 480px) { .au-grid-2 { grid-template-columns: 1fr; } }

.au-done { display: grid; gap: 10px; margin-top: 22px; }
.au-done .au-added { margin: 0 0 6px; }
.onboarding-finish i { font-size: 18px; }
.au-link-center { justify-self: center; padding: 6px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--muted) !important; }
.au-link-center:hover { color: var(--indigo) !important; }
#onboardingDone + .au-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.onboarding-finish { background: var(--orange); box-shadow: 0 12px 28px -14px rgba(244, 88, 42, .9); }
.onboarding-finish:hover { background: var(--orange-deep); }
