/* CopyBoss hesap ekranları: giriş, kayıt, işletmeye bağlan.
   workspace.css tokenlarını (--brand-ink, --primary, --brand-mint, --border ...) kullanır; yeni renk ailesi eklemez.
   Düzen: geniş ekranda solda marka paneli, sağda ortalanmış form. 1024 px altında marka paneli gizlenir,
   üstte kompakt logo kalır. */

.auth-body { background: #F7FAFB; color: var(--text); padding: 0; margin: 0; }
.auth-shell { display: grid; grid-template-columns: minmax(420px, 44%) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- Marka paneli ---------- */
.auth-brand {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 48px;
  padding: 44px 56px 48px; color: #EAF0F2;
  background:
    radial-gradient(1100px 520px at 105% -10%, #087E8B66, transparent 60%),
    radial-gradient(700px 420px at -20% 110%, #B9E8DA26, transparent 60%),
    linear-gradient(160deg, #173444 0%, var(--brand-ink) 55%, #0F2430 100%);
}
.auth-brand::before { /* ince ızgara dokusu */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
}
.auth-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -.6px; color: #fff !important; text-decoration: none; }
.auth-logo svg { width: 26px; height: 26px; color: var(--brand-mint); }
.auth-logo-dot { color: var(--brand-mint); }
.auth-brand-body { margin-block: auto; max-width: 480px; }
.auth-body .auth-eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-mint); }
.auth-body .auth-headline { margin: 0; font-size: clamp(32px, 3vw, 44px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; color: #fff; text-wrap: balance; }
.auth-body .auth-lead { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: #C3D3DA; max-width: 42ch; }
.auth-features { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; }
.auth-features li { display: flex; gap: 16px; align-items: flex-start; }
.auth-feature-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffffff0f; border: 1px solid #ffffff1f; }
.auth-feature-icon svg { width: 20px; height: 20px; color: var(--brand-mint); }
.auth-features div > strong { display: block; font-weight: 600; color: #fff; font-size: 15px; }
.auth-features div > span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: #A4BAC5; }

/* Soyut uygulama önizlemesi: gerçek kayıt veya rakam içermez, yalnız durum dili. */
.auth-glimpse { max-width: 420px; padding: 16px 18px; border-radius: 16px; background: #ffffff0d; border: 1px solid #ffffff1a; box-shadow: 0 30px 60px -30px #00000080; backdrop-filter: blur(6px); }
.auth-glimpse-head { display: flex; gap: 6px; margin-bottom: 12px; }
.auth-glimpse-head span { width: 8px; height: 8px; border-radius: 50%; background: #ffffff2e; }
.auth-glimpse-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid #ffffff14; }
.auth-glimpse-line { display: block; height: 8px; width: 62%; border-radius: 4px; background: linear-gradient(90deg, #ffffff38, #ffffff14); }
.auth-glimpse-line.is-short { width: 44%; }
.auth-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.auth-chip-waiting { background: #FFF4DD; color: #84530E; }
.auth-chip-running { background: #EAF1FA; color: #285C91; }
.auth-chip-done { background: #E8F4EB; color: #28724F; }

/* ---------- Form alanı ---------- */
.auth-main { display: flex; flex-direction: column; min-width: 0; padding: 28px 48px; }
.auth-topbar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 40px; }
.auth-logo-compact { display: none; color: var(--text) !important; font-size: 21px; }
.auth-logo-compact svg { color: var(--primary); width: 24px; height: 24px; }
.auth-logo-compact .auth-logo-dot { color: var(--primary); }
.auth-topbar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted) !important; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.auth-topbar-link:hover { background: var(--raised); color: var(--text) !important; }
.auth-topbar-link svg { width: 16px; height: 16px; }
.auth-panel { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.auth-panel.auth-panel-wide { max-width: 600px; }
.auth-footer { text-align: center; font-size: 13px; color: var(--muted); padding-top: 12px; }

/* Başlık */
.auth-body .ws-auth-title h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; margin: 0; color: var(--text); }
.auth-body .ws-auth-title p { margin: 12px 0 32px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Alanlar */
.auth-body .ws-field { margin: 0 0 20px; }
.auth-body .ws-field > label, .auth-body .auth-label-row label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.auth-body .ws-input, .auth-body .ws-select {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; font-size: 16px;
  background: #fff; border: 1px solid #C9D6DC; border-radius: 10px;
  box-shadow: 0 1px 2px #142D3B0d; transition: border-color .15s, box-shadow .15s;
}
.auth-body textarea.ws-input { min-height: 88px; }
.auth-body .ws-input:hover, .auth-body .ws-select:hover { border-color: var(--control); }
.auth-body .ws-input:focus, .auth-body .ws-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px #087E8B26; }
.auth-body .ws-input[aria-invalid="true"], .auth-body .input-validation-error { border-color: var(--negative); }
.auth-body .ws-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px #AD354526; }
.auth-body .ws-field-error, .auth-body .field-validation-error { font-size: 14px !important; margin-top: 6px; }
.auth-body .ws-field-help { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.ws-auth-label-row, .auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-body .ws-auth-label-row label { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.auth-body .ws-auth-label-row .ws-button-text { padding: 0; min-height: 0; font-size: 14px; font-weight: 500; color: var(--primary) !important; background: none; border: 0; }

/* Seçenek satırı ve düğmeler */
.auth-body .ws-auth-options { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; }
.auth-body .ws-auth-check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; }
.auth-body .ws-auth-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.auth-body .ws-auth-submit {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin: 0;
  font-size: 16px; font-weight: 600; border-radius: 10px;
  background: linear-gradient(180deg, #0A8A98 0%, var(--primary) 100%); border: 1px solid var(--primary-hover);
  box-shadow: 0 1px 0 #ffffff33 inset, 0 8px 20px -10px #087E8B99; transition: transform .12s, box-shadow .15s, filter .15s;
}
.auth-body .ws-auth-submit:hover { filter: brightness(1.05); box-shadow: 0 1px 0 #ffffff33 inset, 0 12px 26px -12px #087E8Bb3; }
.auth-body .ws-auth-submit:active { transform: translateY(1px); }
.auth-body .ws-auth-submit:focus-visible, .auth-body .auth-secondary:focus-visible { outline: 3px solid #087E8B66; outline-offset: 2px; }
.auth-secondary { display: inline-flex !important; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 10px !important; font-size: 15px; font-weight: 600; background: #fff; border: 1px solid #C9D6DC !important; color: var(--text) !important; }
.auth-secondary:hover { border-color: var(--primary) !important; color: var(--primary) !important; background: #fff; }
.auth-stack { display: grid; gap: 12px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; color: var(--muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-body .auth-help { margin: 20px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-align: center; }
.auth-body .ws-text-link { color: var(--primary-hover) !important; font-weight: 600; text-decoration: none; }
.auth-body .ws-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-body .ws-auth-switch { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }

/* Bildirimler ve hata özeti */
.auth-body .ws-notice { border-radius: 10px; margin: 0 0 20px; }
.auth-body .ws-form-errors:not(:empty) { border-radius: 10px; margin-bottom: 20px; }
.auth-body .ws-form-errors:empty { display: none; }

/* Kayıt türü kartları */
.auth-roles { display: grid; gap: 12px; }
.auth-body .auth-role {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px !important; border: 1px solid var(--border) !important; border-radius: 14px;
  background: #fff; color: var(--text) !important; text-decoration: none; box-shadow: 0 1px 2px #142D3B0d; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.auth-body .auth-role:first-child { padding-top: 18px !important; }
.auth-body .auth-role:hover, .auth-body .auth-role:focus-visible { border-color: var(--primary) !important; box-shadow: 0 12px 28px -18px #087E8Bb3; transform: translateY(-1px); outline: none; }
.auth-body .auth-role:hover h2 { text-decoration: none !important; }
.auth-role-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--primary); }
.auth-role-icon svg { width: 22px; height: 22px; }
.auth-body .auth-role h2 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.auth-body .auth-role p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.auth-role > div { flex: 1; min-width: 0; }
.auth-role-arrow { flex: none; width: 18px; height: 18px; color: var(--control); transition: color .15s, transform .15s; }
.auth-role:hover .auth-role-arrow { color: var(--primary); transform: translateX(3px); }

/* Kayıt formu */
.auth-back { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--muted) !important; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); }
.auth-back strong { color: var(--text); font-weight: 600; }
.auth-back:hover { border-color: var(--primary); color: var(--primary) !important; }
.auth-body .ws-auth-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.auth-password-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -4px 0 20px; }
.auth-password-meta .ws-button-text { flex: none; padding: 0; min-height: 0; font-size: 14px; font-weight: 600; color: var(--primary) !important; background: none; border: 0; }
.auth-body .ws-auth-optional { margin: 0 0 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.auth-body .ws-auth-optional summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; cursor: pointer; font-weight: 600; }
.auth-body .ws-auth-optional summary::-webkit-details-marker { display: none; }
.auth-body .ws-auth-optional summary::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 400; color: var(--muted); }
.auth-body .ws-auth-optional[open] summary::after { content: "−"; }
.auth-body .ws-auth-optional summary .ws-muted { margin: 0; font-weight: 400; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--raised); }
.auth-body .ws-auth-optional > .ws-auth-fields { padding: 4px 16px 0; margin: 0; }
.auth-after-note { margin: 0 0 16px !important; }

/* İşletmeye bağlan */
.ws-invite-code { font-family: var(--font-id); letter-spacing: .06em; text-transform: uppercase; }
.auth-body .ws-invite-code::placeholder { letter-spacing: .02em; color: #9AAEB7; text-transform: none; }
.auth-invite-card { margin: 0 0 24px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 18px 40px -28px #142D3B59; }
.auth-invite-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.auth-invite-card h2 { margin: 6px 0 16px; font-size: 24px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.auth-invite-card .ws-invite-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.auth-invite-card .ws-invite-facts > div { padding: 12px 14px; border-radius: 10px; background: var(--raised); }
.auth-invite-card dt { font-size: 13px; color: var(--muted); font-weight: 400; }
.auth-invite-card dd { margin: 4px 0 0; font-weight: 600; }
.auth-invite-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.auth-code-alt { margin-top: 24px; }
.auth-code-alt summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--primary-hover); }
.auth-code-alt[open] summary { margin-bottom: 16px; }
.auth-steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.auth-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; align-items: start; }
.auth-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--primary-hover); font-weight: 600; font-size: 14px; }
.auth-steps strong { font-weight: 600; font-size: 15px; }
.auth-steps span { font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(380px, 40%) minmax(0, 1fr); }
  .auth-brand { padding: 40px; }
  .auth-glimpse { display: none; }
}
@media (max-width: 1023px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { display: none; }
  .auth-main { padding: 20px 20px 24px; }
  .auth-topbar { justify-content: space-between; }
  .auth-logo-compact { display: inline-flex; }
  .auth-panel { padding: 24px 0; margin-top: 8px; }
}
@media (max-width: 640px) {
  .auth-body .ws-auth-title h1 { font-size: 27px; }
  .auth-body .ws-auth-title p { margin-bottom: 24px; }
  .auth-body .ws-auth-fields { grid-template-columns: minmax(0, 1fr); }
  .auth-password-meta { flex-direction: column; gap: 8px; }
  .auth-invite-card .ws-invite-facts { grid-template-columns: minmax(0, 1fr); }
  .auth-body .ws-auth-switch { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-body * { transition: none !important; }
  .auth-body .auth-role:hover, .auth-body .ws-auth-submit:active { transform: none; }
}
.auth-body .auth-invite-card .ws-invite-facts > div { display: block; }
.auth-body .auth-invite-card dd { white-space: nowrap; }
.auth-body .auth-invite-note { margin: 16px 0 0; }
.auth-body .auth-invite-card dd { text-align: left; }

/* Sol alt kart: iskelet çubuklar "yükleniyor" gibi algılandığı için gerçek akış adımlarıyla değiştirildi. */
.auth-body .auth-glimpse-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #A4BAC5; }
.auth-flow { list-style: none; margin: 0; padding: 0; }
.auth-flow li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #ffffff14; }
.auth-flow li:first-child { border-top: 0; }
.auth-flow-step { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ffffff2e; color: var(--brand-mint); font-size: 13px; font-weight: 600; }
.auth-flow div { flex: 1; min-width: 0; }
.auth-flow strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.auth-flow div > span { display: block; color: #A4BAC5; font-size: 13px; line-height: 1.4; }

/* ---------- Kayıt formu: bölümler, parola kuralları, hata özeti ---------- */
.auth-section { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.auth-section + .auth-section { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.auth-section legend { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.auth-section-no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--primary-hover); font-size: 12px; font-weight: 600; }
.auth-body .ws-field .ws-field-help { margin-top: 6px; }
.auth-body .ws-input::placeholder { color: #9AAEB7; }

.auth-body .auth-password-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -4px 0 20px; }
.auth-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.auth-rules li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); font-size: 13px; color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.auth-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #9AAEB7; box-sizing: border-box; flex: none; }
.auth-rules li.is-met { background: #E8F4EB; border-color: #BFE0C9; color: #28724F; }
.auth-rules li.is-met::before { border: 0; background: #28724F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.auth-body .auth-password-meta .ws-button-text { margin-top: 4px; white-space: nowrap; }

/* Hata özeti: alan altındaki mesajları tekrarlayan ağır pembe kutu yerine sade, sol çizgili not. */
.auth-body .ws-form-errors:not(:empty) { padding: 14px 16px 14px 18px; background: #FBF1F2; border: 0; border-left: 3px solid var(--negative); border-radius: 8px; color: var(--negative); font-size: 14px; }
.auth-body .ws-form-errors ul { margin: 0; padding-left: 16px; display: grid; gap: 2px; }
.auth-body .ws-form-errors a { color: var(--negative) !important; text-decoration: none; }
.auth-body .ws-form-errors a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .auth-body .auth-password-meta { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .auth-rules li { transition: none; } }
/* legend'ın tarayıcıdaki özel çizimi (çizgiyi kesmesi, fazla boşluk) float ile normal akışa alınır. */
.auth-section legend { float: left; width: 100%; }
.auth-section legend + * { clear: both; }
.auth-body .auth-legal-note { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.auth-body .auth-legal-note a { color: var(--primary-hover); font-weight: 600; }
.auth-footer a { color: var(--muted) !important; text-decoration: none; } .auth-footer a:hover { color: var(--text) !important; text-decoration: underline; }

/* 2026-11-08 Hesap kurtarma ekranları */
.auth-forgot { font-size: 14px; }
.auth-mail-notice { display: grid; gap: 6px; margin: 0 0 24px; }
.auth-message-actions { margin-top: 8px; }
.auth-message-actions .ws-auth-submit { display: flex; justify-content: center; text-decoration: none; }
.ws-auth-optional > form { padding: 4px 16px 16px; }
.ws-auth-optional > form .ws-auth-submit { margin-top: 4px; }
