:root {
  --cream: #f2efe7;
  --ink: #37372f;
  --gold: #927342;
  --line: #c9b997;
}
* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  touch-action: pan-y;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #eeeae1;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button,
input {
  font: inherit;
}
a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 8%, #fffdf7, transparent 58%),
    radial-gradient(ellipse at 92% 85%, #c6b28b77, transparent 50%),
    linear-gradient(135deg, #e6dfd1, #f5efe3 50%, #d6c8af);
}
.ambient:before,
.ambient:after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  transform: rotate(-32deg);
}
.ambient:before {
  width: 650px;
  height: 950px;
  right: -210px;
  top: 3vh;
  border: 65px solid #baa47738;
  box-shadow:
    inset 2px 2px 0 #fff9,
    2px 2px 0 #fff9,
    0 25px 60px #9d85511a;
  background: linear-gradient(120deg, #ffffff15, transparent 65%);
}
.ambient:after {
  width: 440px;
  height: 680px;
  right: 230px;
  bottom: -420px;
  border: 32px solid #ffffff57;
  box-shadow:
    inset 1px 1px 0 #fff,
    1px 1px 0 #b9a47733;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 25px 5%;
  max-width: 1300px;
  margin: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #6d5836;
  text-decoration: none;
  font:
    italic 35px "Cormorant Garamond",
    serif;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.brand-mark {
  width: 39px;
  height: 45px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.arabic {
  font:
    22px "Aref Ruqaa",
    serif;
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding-left: 18px;
}
.back {
  color: #79694e;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.back:hover {
  text-decoration: underline;
}
main {
  width: min(520px, calc(100% - 36px));
  margin: 28px auto 70px;
}
.intro {
  text-align: center;
  animation: arrive 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8c7147;
}
.intro h1 {
  font:
    400 clamp(49px, 7vw, 67px)/1 "Cormorant Garamond",
    serif;
  letter-spacing: -2px;
  margin: 14px 0 10px;
}
.intro p {
  margin: 0 auto 28px;
  max-width: 380px;
  color: #6e685d;
  font-size: 13px;
  line-height: 1.7;
}
.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 33px 36px 27px;
  border: 1px solid #ffffffd9;
  border-radius: 32px;
  background: linear-gradient(
    125deg,
    #ffffff40,
    #ffffff08 36%,
    #ffffff14 70%,
    #e8d7b620
  );
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  backdrop-filter: blur(8px) saturate(135%);
  box-shadow:
    inset 1px 2px 1px #fff,
    inset -1px -1px 1px #95744360,
    inset 0 0 16px #ffffff20,
    0 14px 35px #72572f15;
  animation: arrive 0.58s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.panel:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #ffffff65;
  border-top-color: #fff;
  border-left-color: #ffffffaa;
  border-radius: 29px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    135deg,
    #ffffff45,
    transparent 16%,
    transparent 80%,
    #ffffff25
  );
}
.panel:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #fff 35%,
    #fff 65%,
    transparent
  );
  pointer-events: none;
}
.sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.sheen:after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 35%;
  height: 140%;
  background: linear-gradient(
    90deg,
    transparent,
    #fff1 30%,
    #ffffff80 49%,
    #fff3 54%,
    transparent 72%
  );
  transform: translateX(-170%) skewX(-22deg);
  animation: light 0.96s 0.16s ease-in-out both;
}
.panel > *:not(.sheen) {
  position: relative;
}
.field {
  margin-bottom: 17px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.input-wrap {
  position: relative;
}
input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid #ffffffd6;
  border-bottom-color: #b9a77e80;
  border-radius: 12px;
  background: linear-gradient(120deg, #ffffffa8, #fffdf384);
  box-shadow:
    inset 0 1px 1px #fff,
    0 3px 9px #735e3710;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}
input::placeholder {
  color: #8e8779;
}
input[aria-invalid="true"] {
  border-color: #aa534c;
  box-shadow: 0 0 0 1px #aa534c55;
}
.help,
.error,
.preview {
  font-size: 12px;
  line-height: 1.55;
}
.help {
  margin: 6px 0 0;
  color: #6f6658;
}
.error {
  display: none;
  margin: 6px 0 0;
  color: #8b302b;
  font-weight: 600;
}
.error:not(:empty) {
  display: block;
}
.preview {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #706044;
}
.preview code {
  font:
    600 13px "DM Sans",
    sans-serif;
  overflow-wrap: anywhere;
}
.password input {
  padding-right: 55px;
}
.toggle {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 42px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #765e3a;
  cursor: pointer;
  border-radius: 9px;
}
.toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toggle .slash {
  display: none;
}
.toggle[aria-pressed="true"] .slash {
  display: block;
}
.terms {
  margin: 21px 0 18px;
  padding: 14px 15px;
  border: 1px solid #ffffffb8;
  background: #ffffff40;
  border-radius: 12px;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}
.checkline input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: #927342;
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}
.terms .help {
  margin: 7px 0 0 28px;
}
.terms a {
  color: #795a2b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms a:focus-visible {
  outline: 2px solid #795a2b;
  outline-offset: 2px;
  border-radius: 2px;
}
.terms .error {
  margin-left: 28px;
}
.submit {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #aa9062;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78b57, #80643b);
  box-shadow:
    inset 0 1px 0 #ffffff65,
    0 5px 15px #74603e12;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.submit:active {
  transform: scale(0.98);
}
.submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status {
  margin: 13px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6ead1;
  color: #5c4829;
  font-size: 12px;
  line-height: 1.6;
}
.status[hidden] {
  display: none;
}
.login {
  text-align: center;
  margin: 20px 0 0;
  color: #6d665a;
  font-size: 12px;
  line-height: 1.7;
}
.login .login-link:link,
.login .login-link:visited {
  display: inline-block;
  padding: 4px;
  color: #785c33;
  font-weight: 600;
  text-decoration-color: #a98b5a;
  text-underline-offset: 3px;
}
.login .login-link:hover {
  color: #5f4727;
  text-decoration-color: currentColor;
}
.login-note {
  margin: 4px 0 0;
  text-align: center;
  color: #6f6658;
  font-size: 12px;
}
.login-note[hidden] {
  display: none;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(520px, calc(100% - 36px));
  margin: 0 auto 26px;
  color: #847b6a;
  font-size: 9px;
  letter-spacing: 1.2px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes light {
  0% {
    transform: translateX(-170%) skewX(-22deg);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateX(360%) skewX(-22deg);
    opacity: 0;
  }
}
@media (max-width: 600px) {
  header {
    padding: 16px 18px 12px;
  }
  .brand {
    font-size: 26px;
    gap: 5px;
    letter-spacing: -1px;
  }
  .brand-mark {
    width: 24px;
    height: 31px;
  }
  .arabic {
    font-size: 18px;
    padding-left: 9px;
    margin-left: 3px;
  }
  main {
    margin-top: 24px;
    margin-bottom: 40px;
  }
  .panel {
    padding: 28px 21px 25px;
  }
  .intro p {
    margin-bottom: 22px;
  }
}
@media (max-width: 360px) {
  header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 21px;
  }
  .arabic {
    font-size: 16px;
    padding-left: 7px;
  }
  .back {
    font-size: 11px;
  }
  .panel {
    padding: 25px 17px;
  }
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .panel {
    background: #f5efe3ee;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.flow-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: #765a34;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.flow-next[hidden] {
  display: none;
}
.flow-next svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .help,
  .error,
  .preview {
    font-size: 13px;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    scroll-margin-block: 24px 35vh;
  }
}


