:root {
  color-scheme: dark;
  --ink: #21151d;
  --rose: #f19aab;
  --rose-light: #ffd8dc;
  --paper: #fff7f1;
  --muted: #bcaeb6;
  --line: rgba(255, 240, 244, 0.14);
  --error: #ffadb0;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 12% 88%, rgba(137, 67, 81, 0.28), transparent 42%),
    radial-gradient(ellipse at 88% 10%, rgba(184, 112, 107, 0.2), transparent 35%),
    linear-gradient(138deg, #20131c, #30202b 54%, #24151e);
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
}

button,
input {
  font: inherit;
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px 20px;
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 34px 38px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 21, 29, 0.82);
  box-shadow: 0 28px 90px rgba(8, 4, 7, 0.36);
  animation: arrive 600ms ease both;
  backdrop-filter: blur(14px);
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.seal {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(241, 154, 171, 0.64);
  border-radius: 50%;
  color: var(--rose-light);
  font-size: 14px;
  font-style: italic;
}

.topline-text,
.eyebrow,
.step-caption {
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.topline-text {
  color: #d9c8ce;
}

.auth-copy {
  padding: 34px 0 28px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--rose);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 9vw, 48px);
  font-weight: 400;
  line-height: 1.12;
}

h1 span {
  display: block;
  color: var(--rose-light);
  font-style: italic;
}

.description {
  max-width: 320px;
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #76636e;
  border-radius: 50%;
}

.step-dot.is-active {
  border-color: var(--rose);
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(241, 154, 171, 0.12);
}

.step-line {
  width: 28px;
  height: 1px;
  margin: 0 8px;
  background: #68545f;
}

.step-caption {
  margin-left: 12px;
  color: #bbaab1;
  font-size: 9px;
}

.auth-form label {
  display: block;
  margin-bottom: 9px;
  color: #f5e6e9;
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 13px;
}

.phone-input,
.code-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 240, 244, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
}

.phone-input {
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.country-code {
  color: var(--rose-light);
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 14px;
}

.input-divider {
  height: 22px;
  margin: 0 13px;
  border-left: 1px solid rgba(255, 240, 244, 0.2);
}

.phone-input input,
.code-input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 15px;
}

.phone-input input {
  width: 100%;
  min-width: 0;
  height: 50px;
}

input::placeholder {
  color: #927f89;
  opacity: 1;
}

.phone-input:focus-within,
.code-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(241, 154, 171, 0.14);
}

.code-input {
  display: block;
  padding: 0 15px;
  letter-spacing: 8px;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 17px;
  border: 0;
  border-radius: 4px;
  background: var(--rose-light);
  color: var(--ink);
  cursor: pointer;
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #ffe8e9;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-arrow {
  font-size: 20px;
  font-weight: 400;
}

.secondary-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 15px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--rose-light);
  cursor: pointer;
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: #fff;
}

.status-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--error);
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.status-message.is-success {
  color: #b9e0c9;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 17px 0 0;
  color: #a998a2;
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 11px;
  text-align: center;
}

.privacy-note span {
  color: var(--rose);
}

.ambient-orbit {
  position: absolute;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 216, 220, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: -245px;
  right: -170px;
}

.orbit-two {
  bottom: -285px;
  left: -170px;
  width: 440px;
}

[hidden] {
  display: none !important;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 18px 14px;
  }

  .auth-panel {
    padding: 25px 22px 21px;
  }

  .auth-copy {
    padding: 28px 0 25px;
  }
}

@media (max-height: 760px) {
  .auth-shell {
    place-items: start center;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-panel {
    margin: 24px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}