/* Premium giriş — siyah-beyaz, mobil öncelikli */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --auth-primary: #ffffff;
  --auth-primary-dark: #e5e5e5;
  --auth-bg: #000000;
  --auth-card: #ffffff;
  --auth-muted: #737373;
  --auth-border: #e5e5e5;
  --auth-ink: #0a0a0a;
}

html { -webkit-text-size-adjust: 100%; }

body.auth-premium {
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--auth-ink);
  background: var(--auth-bg);
  -webkit-font-smoothing: antialiased;
}

.auth-premium--single .auth-premium__main {
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-top: max(3rem, calc(env(safe-area-inset-top) + 2rem));
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.auth-premium--single .auth-premium__foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.auth-back {
  position: fixed;
  z-index: 10;
  top: max(0.85rem, env(safe-area-inset-top));
  left: max(0.85rem, env(safe-area-inset-left));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.auth-back svg {
  width: 20px;
  height: 20px;
}

.auth-premium--single .auth-card {
  max-height: calc(100dvh - 7.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem 1.25rem 1.25rem;
}

@media (max-width: 380px) {
  .auth-premium--single .auth-card__head h1 { font-size: 1.25rem; }
  .auth-premium--single .auth-card__desc { font-size: 0.8125rem; }
}

.auth-premium__bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  z-index: 0;
}

.auth-premium__main {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.auth-premium__foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem 1rem;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.auth-premium__foot a { color: rgba(255, 255, 255, 0.85); }

.auth-card {
  width: 100%;
  max-width: 24rem;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  padding: 1.75rem 1.5rem 1.5rem;
}

.auth-card--wide { max-width: 28rem; }

.auth-card--animate {
  animation: auth-in 0.45s ease-out both;
}

@keyframes auth-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.auth-card__head { text-align: center; margin-bottom: 1.25rem; }

.auth-card__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: #0a0a0a;
  padding: 6px;
}

.auth-card__icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: #ecfdf5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.auth-card__head h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.auth-card__desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--auth-muted);
}

.auth-card__actions { display: grid; gap: 0.65rem; }

.auth-sep {
  position: relative;
  text-align: center;
  margin: 0.35rem 0;
}
.auth-sep::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--auth-border);
}
.auth-sep span {
  position: relative;
  background: var(--auth-card);
  padding: 0 0.65rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--auth-muted);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-btn:hover { transform: scale(1.02); }

.auth-btn--block { width: 100%; }

.auth-btn--primary {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

.auth-btn--primary:hover {
  background: #f5f5f5;
}

.auth-btn--secondary {
  color: var(--auth-ink);
  background: #fafafa;
  border-color: var(--auth-border);
}

.auth-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

.auth-field { margin-bottom: 0.85rem; }
.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.auth-input,
.auth-card input[type=email],
.auth-card input[type=password],
.auth-card input[type=text],
.auth-card input[type=tel] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  color: var(--auth-ink);
}

.auth-input:focus,
.auth-card input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.auth-input--invalid,
.auth-card input.auth-input--invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-field__error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #dc2626;
}

.auth-phone {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.auth-phone__prefix {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-ink);
  background: #f5f5f5;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
}

.auth-phone__input {
  flex: 1;
  min-width: 0;
}

.auth-field-error {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #991b1b;
}

.auth-input--code {
  text-align: center;
  font-size: 1.35rem !important;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.auth-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--auth-border);
  text-align: center;
}

.auth-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-link--accent { color: #0a0a0a; font-weight: 700; }
.auth-link--center { display: block; text-align: center; margin-top: 1rem; }
.auth-card__links--stack { gap: 0.35rem; border-top: none; padding-top: 0; margin-top: 0.75rem; }

.auth-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--auth-muted);
  text-align: center;
}

.auth-switch {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--auth-muted);
  text-align: center;
}

.auth-btn--ghost {
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--auth-border);
}

.auth-onboard-join { margin-top: 0.5rem; }
.auth-onboard-skip { margin-top: 0; }

.auth-flow-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.auth-flow-footer {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--auth-border);
}

.auth-support-panel {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.auth-support-panel__lead {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #9a3412;
}

.auth-support-panel__links {
  display: grid;
  gap: 0.55rem;
}

.pw-flow-cancel-btn,
.auth-flow-cancel-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #991b1b;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.pw-flow-cancel-btn:hover,
.auth-flow-cancel-btn:hover {
  background: #fef2f2;
}

.auth-link-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8125rem;
  color: #404040;
  text-decoration: underline;
  cursor: pointer;
}
.auth-link-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-resend { margin-top: 0.25rem; }

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.auth-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert--success { background: #ecfdf5; color: #047857; border: 1px solid #bbf7d0; }
.auth-alert--warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.auth-alert--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Rol seçimi */
.auth-role-grid { display: grid; gap: 0.65rem; }

.auth-role-card {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.auth-role-card__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-role-card__icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--auth-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #404040;
  font-size: 18px;
}

.auth-role-card strong { font-size: 0.95rem; }
.auth-role-card__desc {
  grid-column: 2;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--auth-muted);
}

.auth-role-card:hover .auth-role-card__inner,
.auth-role-card:focus-visible .auth-role-card__inner {
  border-color: #000000;
  background: #fafafa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

@media (max-width: 380px) {
  .auth-card { padding: 1.35rem 1.1rem; }
}
