@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: #172846;
  --primary-light: #375383;
  --primary-dark: #0F1B2F;
  --accent: #e2c508;
  --danger: #fa4f52;
  --surface: #ffffff;
  --surface-soft: #f4f8f6;
  --text: #181818;
  --muted: #5a5a5a;
  --border: rgba(23, 40, 70, 0.14);
  --shadow: 0 24px 64px rgba(15, 27, 47, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

.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 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.support-link {
  position: absolute;
  top: 28px;
  left: 32px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-color: rgba(23, 40, 70, 0.3);
}

.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(23, 40, 70, 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(23, 40, 70, 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;
}

.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);
}

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

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

  .brand-panel {
    gap: 28px;
  }

  .support-link {
    position: static;
    align-self: flex-start;
    margin-bottom: 28px;
  }

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