/* Auth ekranları; TakasBul.Web ana temasının marka renkleri. */
body.tb-auth {
    --tb-yellow: #e9b824;
    --tb-dark: #15191d;
    --tb-ink: #182226;
    font-family: 'Lexend', 'Inter', system-ui, sans-serif;
    background: #f8f9fa;
    color: var(--tb-ink);
    height: auto;
    min-height: 100svh;
    overflow: auto;
    padding: 0;
    gap: 0;
}
.tb-brand-panel {
    position: relative;
    display: flex;
    flex: 1 1 56%;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 100svh;
    padding: 34px clamp(28px, 4vw, 64px) 28px;
    border-radius: 0;
    overflow: hidden;
    background: var(--tb-dark);
    color: #fff;
}
.tb-brand-panel::before {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    right: -340px;
    top: -390px;
    border: 90px solid rgb(233 184 36 / 6%);
    border-radius: 50%;
    pointer-events: none;
}
.tb-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; text-decoration: none; }
.tb-brand img { display: block; width: 155px; filter: brightness(0) invert(1); }
.tb-brand > span { font-size: 9px; color: #929896; letter-spacing: .16em; }
.tb-brand-story { width: 100%; max-width: 650px; margin: 42px auto 30px; position: relative; }
.tb-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 500; letter-spacing: .18em; color: #d0d3cd; margin-bottom: 20px; }
.tb-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--tb-yellow); box-shadow: 0 0 0 5px rgb(233 184 36 / 9%); }
.tb-brand-story h2 { font-size: clamp(32px, 3.7vw, 56px); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.tb-brand-story h2 > span { color: var(--tb-yellow); }
.tb-brand-description { max-width: 420px; font-size: 13px; line-height: 1.8; color: #b8bfbc; margin-top: 18px; }
.tb-exchange-scene { position: relative; height: 310px; margin: 22px 0 12px; isolation: isolate; }
.tb-scene-orbit { position: absolute; inset: 24px 24px 30px; border: 1px dashed #505348; border-radius: 50%; transform: rotate(-15deg); z-index: -1; }
.tb-scene-orbit::after { content: ''; position: absolute; width: 9px; height: 9px; background: var(--tb-yellow); border-radius: 50%; top: 46px; right: 29px; }
.tb-scene-caption { position: absolute; top: 1px; right: 6%; display: flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: .1em; color: #b8bfbc; }
.tb-scene-caption svg { width: 14px; height: 14px; color: var(--tb-yellow); }
.tb-asset { position: absolute; width: 46%; max-width: 260px; background: #f4f2eb; border-radius: 17px; padding: 14px 14px 12px; color: var(--tb-ink); box-shadow: 0 20px 40px #0004; }
.tb-asset-home { top: 24px; left: 1%; transform: rotate(-7deg); }
.tb-asset-car { top: 73px; right: 1%; transform: rotate(7deg); }
.tb-asset-heading { display: flex; justify-content: space-between; align-items: center; font-size: 8px; letter-spacing: .08em; color: #71776d; }
.tb-asset-heading svg { width: 15px; height: 15px; }
.tb-asset-art { display: block; width: 100%; height: 133px; margin: 6px 0; }
.tb-asset-footer { display: flex; align-items: center; gap: 9px; padding-top: 10px; border-top: 1px solid #deded3; }
.tb-asset-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #e7e6dc; }
.tb-asset-icon svg { width: 15px; height: 15px; }
.tb-asset-footer strong { display: block; font-size: 11px; font-weight: 500; }
.tb-asset-footer small { display: block; font-size: 9px; margin-top: 3px; color: #777c72; }
.tb-exchange-symbol { position: absolute; top: 119px; left: 50%; transform: translateX(-50%) rotate(-8deg); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--tb-yellow); color: var(--tb-dark); border: 5px solid var(--tb-dark); z-index: 2; }
.tb-exchange-symbol svg { width: 26px; height: 26px; }
.tb-scene-note { position: absolute; bottom: 0; left: 2%; display: flex; align-items: center; gap: 8px; color: #b8bfbc; font-size: 10px; }
.tb-scene-note > span { width: 18px; height: 1px; background: var(--tb-yellow); }
.tb-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-categories > span { display: flex; align-items: center; gap: 7px; border: 1px solid #343b3a; border-radius: 99px; padding: 8px 12px; font-size: 10px; color: #d1d5ce; }
.tb-categories svg { width: 13px; height: 13px; color: var(--tb-yellow); }
.tb-brand-bottom { position: relative; border-top: 1px solid #343b3a; padding-top: 20px; }
.tb-steps { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tb-steps li { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #e2e5dd; }
.tb-steps li > span { color: var(--tb-yellow); font-size: 10px; }
.tb-brand-bottom p { display: flex; align-items: center; gap: 7px; color: #929b95; font-size: 9px; line-height: 1.6; margin-top: 18px; }
.tb-brand-bottom p svg { width: 13px; height: 13px; flex-shrink: 0; }
.tb-auth .right-panel { flex: 1 1 44%; width: auto; height: auto; max-height: none; min-height: 100svh; border: 0; border-radius: 0; padding: 44px clamp(24px, 4vw, 60px); align-items: center; overflow: visible; }
.tb-auth .form-wrapper { max-width: 400px; }
.tb-auth .form-header h1 { font-size: 27px; letter-spacing: -.04em; }
.tb-auth .form-header p { line-height: 1.7; font-size: 13px; }
.tb-auth .btn-primary { background: var(--tb-yellow); color: var(--tb-dark); box-shadow: none; font-weight: 600; }
.tb-auth .btn-primary:hover { background: #dfad18; box-shadow: 0 6px 18px rgb(233 184 36 / 18%); }
.tb-auth .forgot-link, .tb-auth .register-hint a, .tb-auth .input-wrap:focus-within .icon { color: #80620e; }
.tb-auth .input-wrap input:focus { border-color: var(--tb-yellow); box-shadow: 0 0 0 3px rgb(233 184 36 / 15%); }
.tb-auth .checkbox-label input { accent-color: var(--tb-yellow); }
.tb-auth .register-options a { background: #faf9f5; border-color: #e3e1d8; }
.tb-auth .register-options a:hover { background: #fef3c7; box-shadow: none; }
.tb-auth .validation-summary-valid, .tb-auth .field-validation-valid { display: none; }
.tb-auth a:focus-visible, .tb-auth button:focus-visible { outline: 3px solid var(--tb-yellow); outline-offset: 4px; }
.tb-auth .pw-toggle:hover { color: #80620e; }
.tb-auth .input-wrap input[type=password] { padding-right: 48px; }

/* Kayıt formları: uzun içerikte sol marka paneli ekranda kalır. */
body.tb-register { align-items: flex-start; }
.tb-register .right-panel { min-width: 0; }
.tb-register .form-wrapper { max-width: 480px; }
.tb-register .section-label { color: #777b71; font-size: 10px; letter-spacing: .12em; margin-top: 24px; }
.tb-register .section-label::before, .tb-register .section-label::after { background: #e8e8e1; }
.tb-register .field-row { margin-bottom: 0; }
.tb-register .field-row > .field { min-width: 0; }
.tb-register .agreements { gap: 10px; }
.tb-register .agree-row input { accent-color: var(--tb-yellow); flex-shrink: 0; }
.tb-register .agree-row label a { color: #80620e; }
.tb-register .input-wrap select:focus, .tb-register .input-wrap textarea:focus, .tb-register .input-plain:focus { border-color: var(--tb-yellow); box-shadow: 0 0 0 3px rgb(233 184 36 / 15%); }
.tb-register .field > input:not([type=checkbox]):not([type=radio]), .tb-register .field > textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; font: inherit; font-size: .9rem; background: #f8fafc; color: var(--tb-ink); }
.tb-register .field > input:focus, .tb-register .field > textarea:focus { outline: none; border-color: var(--tb-yellow); box-shadow: 0 0 0 3px rgb(233 184 36 / 15%); }
.tb-register .register-hint { margin-top: 18px; font-size: 12px; line-height: 1.7; color: #6b7280; }
.tb-register .account-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.tb-register .account-type-option { display: flex; align-items: center; gap: 10px; border: 1px solid #e3e1d8; background: #faf9f5; border-radius: 12px; padding: 14px; cursor: pointer; }
.tb-register .account-type-option input { accent-color: var(--tb-yellow); }
.tb-register .account-type-option strong { display: block; font-size: 12px; font-weight: 600; }
.tb-register .account-type-option small { display: block; font-size: 10px; line-height: 1.6; color: #6b7280; margin-top: 3px; }
.tb-register .account-type-option:has(input:checked), .tb-register .category-option:has(input:checked) { background: #fff9e7; border-color: var(--tb-yellow); }
.tb-register .category-option { cursor: pointer; }
.tb-register .corporate-form { padding-right: 0; }
.tb-register .tb-contract-btn-confirm { background: var(--tb-yellow); color: var(--tb-dark); }
.tb-register .tb-contract-btn-confirm:hover { background: #dfad18; }
@media (min-width: 1024px) {
    .tb-register .tb-brand-panel { position: sticky; top: 0; height: 100svh; overflow-y: auto; }
    .tb-register .tb-brand-story, .tb-register .tb-brand, .tb-register .tb-brand-bottom { flex-shrink: 0; }
}
@media (max-width: 600px) {
    .tb-register .field-row, .tb-register .account-type-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) and (max-height: 820px) {
    .tb-brand-panel { padding-top: 24px; padding-bottom: 22px; }
    .tb-brand-story { margin-top: 26px; margin-bottom: 20px; }
    .tb-brand-story h2 { font-size: clamp(32px, 3.2vw, 46px); }
    .tb-exchange-scene { height: 285px; margin-top: 16px; }
    .tb-asset-art { height: 112px; }
    .tb-brand-bottom { padding-top: 16px; }
}
@media (max-width: 1100px) { .tb-brand > span { display: none; } .tb-steps { flex-wrap: wrap; } }
@media (max-width: 1023px) {
    body.tb-auth { display: block; }
    .tb-brand-panel { display: none; }
    .tb-auth .right-panel { padding: 32px 24px; }
    .tb-auth .mobile-logo { width: 190px; }
}
@media (max-width: 420px) { body.tb-auth { padding: 0; } .tb-auth .right-panel { border: 0; border-radius: 0; min-height: 100svh; } .tb-auth .form-header h1 { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .tb-auth *, .tb-auth *::before, .tb-auth *::after { animation: none; transition: none; } }

/* Kayıt ekranı viewport içinde; uzun formlar adım adım gösterilir. */
body.tb-register { height: 100dvh; min-height: 0; overflow: hidden; }
.tb-register .tb-brand-panel { position: relative; height: 100dvh; min-height: 0; overflow: hidden; }
.tb-register .right-panel { height: 100dvh; min-height: 0; max-height: 100dvh; padding-top: 24px; padding-bottom: 24px; overflow: hidden; }
.tb-register .form-wrapper { padding: 0; min-width: 0; }
.tb-register .form-header { margin-bottom: 18px; }
.tb-register .section-label { margin: 0 0 12px; }
.tb-register .field { margin-bottom: 12px; }
.tb-register .register-hint { margin-top: 12px; }
.tb-register .mobile-logo { width: 150px; margin-bottom: 16px; }
.tb-register .category-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-register-progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--tb-yellow); padding-bottom: 12px; }
.tb-register-progress strong { font-size: 12px; font-weight: 500; }
.tb-register-progress > span { color: #777b71; font-size: 11px; }
.tb-wizard-ready .tb-register-step > .section-label:first-child { display: none; }
.tb-wizard-ready .tb-register-step[hidden], .tb-register-actions > [hidden] { display: none; }
.tb-register-actions { display: flex; gap: 10px; margin-top: 16px; }
.tb-register-actions .btn-primary, .tb-register-actions .btn-secondary { margin: 0; height: 44px; font-size: 13px; }
.tb-register-actions .btn-secondary { flex: 0 0 76px; }
.tb-register-actions .btn-primary { flex: 1; }
@media (max-height: 850px) and (min-width: 1024px) {
    .tb-register .tb-brand-panel { padding-top: 24px; padding-bottom: 20px; }
    .tb-register .tb-brand-story { margin: 20px auto; }
    .tb-register .tb-brand-story h2 { font-size: clamp(30px, 3vw, 44px); }
    .tb-register .tb-exchange-scene { height: 255px; margin: 16px 0 12px; }
    .tb-register .tb-asset-art { height: 90px; }
    .tb-register .tb-brand-bottom { padding-top: 14px; }
    .tb-register .tb-brand-bottom p { margin-top: 10px; }
}
@media (max-width: 600px) {
    .tb-register .field-row, .tb-register .account-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-register .right-panel { padding: 20px; }
    .tb-register .input-wrap input { font-size: 16px; }
    .tb-register .field-row .input-wrap input { padding-left: 32px; }
    .tb-register .field-row .input-wrap .icon { left: 9px; width: 15px; }
    .tb-register .category-option { padding: 10px; font-size: 12px; }
    .tb-register .agree-row label { font-size: 12px; }
}
@media (max-height: 700px) {
    .tb-register .right-panel { padding-top: 14px; padding-bottom: 14px; }
    .tb-register .mobile-logo { width: 125px; margin-bottom: 10px; }
    .tb-register .form-header { margin-bottom: 12px; }
    .tb-register .form-header h1 { font-size: 22px; }
    .tb-register .form-header p { font-size: 11px; }
    .tb-register-progress { margin-bottom: 12px; padding-bottom: 8px; }
    .tb-register .field { margin-bottom: 8px; }
    .tb-register .input-wrap input, .tb-register .input-wrap select { height: 40px; }
    .tb-register .field > input:not([type=checkbox]):not([type=radio]) { min-height: 40px; }
    .tb-register .field label { font-size: 11px; }
    .tb-register .register-hint { margin-top: 8px; font-size: 11px; }
    .tb-register .tb-brand-description { margin-top: 12px; }
    .tb-register .tb-brand-bottom p { display: none; }
}
@media (max-height: 600px) {
    .tb-register .mobile-logo, .tb-register .form-header p { display: none; }
    .tb-register .tb-brand-story { margin: 14px auto; }
    .tb-register .tb-brand-description, .tb-register .tb-eyebrow, .tb-register .tb-categories { display: none; }
    .tb-register .tb-exchange-scene { height: 225px; }
}
