/*
  web/delete-account/styles.css
  Story 12b — public web hesap-silme talebi (CAP-11).

  Tokens mirror lib/theme/tokens.ts / DESIGN.md ("Gece Kıvılcımı", restyled
  2026-10-02 to match riddlo.app — web/site/styles.css). System font, light +
  dark, no emoji icons. This page does not consume the in-app i18n catalog —
  it carries its own small static bilingual text (Always rule).
*/
:root {
  color-scheme: light dark;
  --bg: #faf8ff;
  --surface: #ffffff;
  --surface-muted: #f3f0fc;
  --input: #ffffff;
  --border: #e9e4fa;
  --border-strong: #8f85bd;
  --text: #1a1433;
  --text-2: #554c77;
  --text-3: #6e6690;
  --primary: #5b45e0;
  --on-primary: #ffffff;
  --focus: #5b45e0;
  --danger: #b8323f;
  --on-danger: #ffffff;
  --danger-container: rgba(184, 50, 63, 0.1);
  --warning: #8a5e14;
  --warning-container: rgba(198, 138, 44, 0.14);
  --success: #12704f;
  --success-container: rgba(18, 112, 79, 0.12);
  --shadow-card: 0 1px 2px rgba(42, 30, 120, 0.06), 0 8px 24px rgba(42, 30, 120, 0.06);
  --r-sm: 12px;
  --r-md: 16px;
  --r-card: 24px;
  --pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b1f;
    --surface: #1a1633;
    --surface-muted: #231e42;
    --input: #1a1633;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: #6b6396;
    --text: #f4f2ff;
    --text-2: #b9b3d6;
    --text-3: #8f88b0;
    --primary: #8b7cff;
    --on-primary: #0e0b1f;
    --focus: #c3b9ff;
    --danger: #ff8a8a;
    --on-danger: #0e0b1f;
    --danger-container: rgba(255, 138, 138, 0.14);
    --warning: #e8b35e;
    --warning-container: rgba(232, 179, 94, 0.14);
    --success: #5fd3a6;
    --success-container: rgba(95, 211, 166, 0.14);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px 16px 40px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 24px;
}

h1 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}

p + p {
  margin-top: 8px;
}

.lang-en {
  color: var(--text-3);
  font-size: 14px;
}

h1 + .lang-en {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin: 20px 0 8px;
}

input[type='email'] {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--input);
  color: var(--text);
}

input[type='email']::placeholder {
  color: var(--text-3);
}

input[type='email']:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field-error {
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  margin-top: 6px;
}

button {
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 20px;
  transition: filter 150ms ease, background-color 150ms ease;
}

button:disabled {
  cursor: progress;
  filter: saturate(0.6);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  margin-top: 16px;
}

.btn-primary:hover:not(:disabled),
.btn-danger:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-danger {
  background: var(--danger);
  color: var(--on-danger);
  margin-top: 20px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  margin-top: 4px;
}

.btn-ghost:hover {
  background: var(--surface-muted);
}

.warnhero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.warnhero .wg,
.result-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.warnhero .wg svg,
.result-icon svg {
  width: 28px;
  height: 28px;
}

.warnhero .wg,
.result-icon--danger {
  background: var(--danger-container);
  color: var(--danger);
}

.result-icon--warning {
  background: var(--warning-container);
  color: var(--warning);
}

.result-icon--success {
  background: var(--success-container);
  color: var(--success);
}

.dellist {
  margin-top: 20px;
  background: var(--surface-muted);
  border-radius: var(--r-md);
  overflow: hidden;
}

.dli {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.dli:last-child {
  border-bottom: none;
}

.dli .x {
  width: 22px;
  height: 22px;
  border-radius: var(--pill);
  background: var(--danger-container);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dli .x svg {
  width: 14px;
  height: 14px;
}

.subnote {
  margin-top: 16px;
  background: var(--warning-container);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.subnote .st {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.subnote .st b {
  color: var(--text);
}

.center-text {
  text-align: center;
}

h2.center-text + p {
  margin-top: 8px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}

/* English line on the tinted note: text-3 drops below 4.5:1 there. */
.subnote .lang-en {
  color: var(--text-2);
}
