/* =========================================================
   MERGEPURCHASES — Giriş ve kayıt
   ========================================================= */
body.auth { background: var(--paper); min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr); min-height: 100vh; }
.auth-aside { position: sticky; top: 0; height: 100vh; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: var(--ink); isolation: isolate; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/hero.jpg") 30% center / cover no-repeat; }
.auth-aside::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,27,44,.92), rgba(14,27,44,.82) 50%, rgba(14,27,44,.96)); }
.auth-aside .brand img { height: 22px; width: auto; }
.auth-aside h2 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); max-width: 18ch; letter-spacing: -.02em; }
.auth-aside ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; color: #C9D3E0; }
.auth-aside li { display: flex; gap: 12px; align-items: center; }
.auth-aside li svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.auth-aside .back { color: #C9D3E0; text-decoration: none; font-size: var(--fs-14); display: inline-flex; gap: 8px; align-items: center; }
.auth-aside .back:hover { color: #fff; }
.auth-aside .back svg { width: 16px; height: 16px; }
[dir="rtl"] .auth-aside .back svg { transform: scaleX(-1); }
.demo-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 18px; font-size: var(--fs-14); }
.demo-box h3 { color: #fff; font-size: var(--fs-14); margin-bottom: 2px; }
.demo-box > p { color: #AEB9C8; font-size: var(--fs-13); margin-bottom: 12px; }
.demo-box code { color: #FCD9A0; background: none; font-family: inherit; font-weight: 600; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.demo-row strong { display: block; color: #fff; font-weight: 600; font-size: var(--fs-13); }
.demo-row span { color: #AEB9C8; font-size: var(--fs-12); word-break: break-all; }
.demo-row button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm); padding: 5px 10px; font-size: var(--fs-13); font-weight: 600; flex: none; }
.demo-row button:hover { background: rgba(255,255,255,.2); }
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 32px 24px 48px; }
.auth-top { width: 100%; max-width: 640px; display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }
.auth-top .select { width: auto; min-height: 36px; padding: 6px 32px 6px 10px; font-size: var(--fs-14); }
.auth-card { width: 100%; max-width: 640px; padding: 32px 36px 36px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--r-md); padding: 4px; margin-bottom: 28px; }
.auth-tabs button { border: 0; background: none; padding: 10px; border-radius: 8px; font-weight: 600; color: var(--steel); }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.auth-card h1 { font-size: var(--fs-24); }
.auth-card .lead { color: var(--steel); margin: 6px 0 24px; }
.auth-form { display: grid; gap: 18px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 46px; }
.pw-toggle { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth-foot { text-align: center; color: var(--steel); font-size: var(--fs-14); margin-top: 22px; }
.form-alert { display: none; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--red-50); color: var(--red); font-size: var(--fs-14); }
.form-alert.ok { background: var(--green-50); color: var(--green); }
.form-alert.show { display: flex; }
.form-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.otp-input { letter-spacing: .5em; font-size: var(--fs-24); text-align: center; font-variant-numeric: tabular-nums; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.stepper span { height: 4px; border-radius: 4px; background: var(--line); }
.stepper span.done { background: var(--blue); }
.step-meta { display: flex; justify-content: space-between; font-size: var(--fs-13); color: var(--steel); margin-bottom: 22px; }
.step-meta strong { color: var(--ink); }
.reg-step { display: none; }
.reg-step.active { display: grid; gap: 18px; animation: stepIn .25s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.reg-step h2 { font-size: var(--fs-20); }
.reg-step > p { color: var(--steel); margin-top: -12px; }
.type-cards { display: grid; gap: 10px; }
.type-card { position: relative; display: grid; grid-template-columns: 40px 1fr 20px; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: #fff; }
.type-card:hover { border-color: var(--steel-2); }
.type-card input { position: absolute; opacity: 0; }
.type-card .ic { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--paper); display: grid; place-items: center; color: var(--ink); }
.type-card .ic svg { width: 20px; height: 20px; }
.type-card strong { display: block; }
.type-card small { color: var(--steel); font-size: var(--fs-14); }
.type-card .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--steel-2); }
.type-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: var(--blue-50); }
.type-card:has(input:checked) .radio { border: 6px solid var(--blue); }
.type-card:has(input:focus-visible) { box-shadow: var(--focus); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--line); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--orange); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--amber); }
.pw-meter[data-score="4"] i { background: var(--green); }
.consents { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.summary-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--fs-14); padding: 16px; border-radius: var(--r-md); background: var(--paper); margin: 0; }
.summary-list dt { color: var(--steel); }
.summary-list dd { margin: 0; font-weight: 600; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.step-actions .btn-primary { margin-inline-start: auto; }
.done-panel { text-align: center; padding: 24px 0; }
.done-panel svg { width: 52px; height: 52px; color: var(--green); margin: 0 auto 14px; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 24px; gap: 20px; position: relative; height: auto; }
  .auth-aside .hide-mobile { display: none; }
  .auth-card { padding: 24px 20px; }
}
/* Telefon alan kodu seçimi */
.input-group > .dial-select { flex: 0 0 132px; width: 132px; min-width: 0; padding-inline-end: 28px; text-overflow: ellipsis; }
@media (max-width: 420px) { .input-group > .dial-select { flex-basis: 108px; width: 108px; } }
