@font-face {
  font-family: "NotoKufiArabic";
  src: url("/assets/fonts/notokufiarabic-regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "NotoKufiArabic";
  src: url("/assets/fonts/notokufiarabic-bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --primary: #1E88E5;
  --primary-light: #29B6F6;
  --primary-dark: #0D47A1;
  --accent: #FFC107;
  --danger: #fa4f52;
  --surface: #ffffff;
  --surface-soft: #f4f8f6;
  --text: #181818;
  --muted: #5a5a5a;
  --border: rgba(24, 47, 67, 0.14);
  --shadow: 0 24px 64px rgba(14, 28, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "NotoKufiArabic", sans-serif;
  background:
    linear-gradient(140deg, rgba(24, 47, 67, 0.1), rgba(226, 197, 8, 0.08)),
    linear-gradient(180deg, #fcefef 0%, #fff8f8 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.brand-panel,
.form-panel {
  padding: 48px;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(226, 197, 8, 0.18), transparent 32%),
    linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.brand-logo {
  width: 132px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.18));
}

.brand-copy {
  max-width: 580px;
}

.eyebrow {
  margin: 24px 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.2;
}

.lead {
  margin: 20px 0 0;
  font-size: 1.02rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.86);
}

.info-strip {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.info-strip div {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.info-strip strong,
.info-strip span {
  display: block;
}

.info-strip strong {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.info-strip span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 0.92rem;
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.form-header {
  max-width: 460px;
  margin-bottom: 28px;
}

.form-header h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.form-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.deletion-form {
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.94rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(24, 47, 67, 0.12);
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.ghost-button,
.submit-button {
  font: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.ghost-button {
  min-width: 88px;
  padding: 0 16px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(24, 47, 67, 0.12);
}

.notice {
  width: min(100%, 460px);
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(226, 197, 8, 0.12);
  color: #4a4020;
  line-height: 1.9;
  font-size: 0.92rem;
}

.hidden {
  display: none !important;
}

#step-phone,
#step-otp {
  display: grid;
  gap: 18px;
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.phone-prefix {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.block-ghost {
  width: 100%;
  height: 54px;
}

#otp {
  text-align: center;
  letter-spacing: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.otp-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.submit-button {
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.submit-button:disabled,
.ghost-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.status-message {
  width: min(100%, 460px);
  min-height: 30px;
  margin: 18px 0 0;
  line-height: 1.8;
  font-size: 0.95rem;
}

.status-message.error {
  color: var(--danger);
}

.status-message.success {
  color: var(--primary-dark);
}

.support-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 193, 7, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(41, 182, 246, 0.1)),
    #fff8f8;
}

.support-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 40px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.support-hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(13, 71, 161, 0.94), rgba(30, 136, 229, 0.9)),
    var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.support-brand .eyebrow {
  margin-top: 22px;
}

.support-copy {
  max-width: 680px;
}

.support-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: 1.18;
}

.support-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 54px rgba(14, 28, 40, 0.1);
  backdrop-filter: blur(18px);
}

.support-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.support-email {
  display: inline-block;
  color: var(--primary-dark);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.support-email:hover {
  text-decoration: underline;
}

.support-note {
  margin: 24px 0;
  color: var(--muted);
  line-height: 1.9;
}

.support-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .form-panel {
    padding: 28px 20px;
  }

  .brand-panel {
    gap: 28px;
  }

  .brand-copy h1 {
    font-size: 2rem;
  }

  .support-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    width: min(100% - 32px, 680px);
    padding: 24px 0;
  }

  .support-hero {
    min-height: auto;
    gap: 64px;
    padding: 32px 24px;
  }

  .support-copy h1 {
    font-size: 2.1rem;
  }

  .support-card {
    padding: 28px 22px;
  }
}
