:root {
  --bg-top: #f7f8fb;
  --bg-bottom: #d7e5df;
  --card: rgba(255, 255, 255, 0.96);
  --card-shadow: 0 26px 70px rgba(59, 88, 82, 0.18);
  --panel: #f3f4f7;
  --panel-border: rgba(116, 138, 131, 0.12);
  --text: #1c1d22;
  --muted: #70747d;
  --placeholder: #8e9197;
  --accent: #ff6419;
  --accent-dark: #f45811;
  --accent-soft: #fff0e8;
  --danger: #cc4a3a;
  --danger-bg: #fff2ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 35%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: "Noto Sans Georgian", "Manrope", sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
}

a,
button,
input {
  font: inherit;
}

.app-shell {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero-panel {
  position: relative;
  min-height: min(54vh, 680px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.18) 0%, rgba(211, 226, 221, 0.22) 100%),
    url("img/orig.webp") center top / cover no-repeat;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(238, 246, 242, 0) 0%, rgba(238, 246, 242, 0.84) 100%);
}

.page-alert {
  position: absolute;
  top: 112px;
  left: 30px;
  right: 30px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 22px 24px;
  border: 2px solid #ffd2d4;
  border-radius: 30px;
  background: rgba(255, 245, 245, 0.97);
  box-shadow: 0 18px 40px rgba(128, 44, 44, 0.08);
}

.page-alert[hidden] {
  display: none;
}

.page-alert-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.page-alert-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-alert-text {
  flex: 1 1 auto;
  margin: 0;
  color: #222327;
  font-size: clamp(1rem, 2.9vw, 1.12rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.page-alert-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #191a1f;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.page-alert-close svg {
  width: 26px;
  height: 26px;
  display: block;
}

.hero-actions {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  gap: 14px;
}

.hero-action {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #1f2328;
  box-shadow: 0 10px 30px rgba(88, 101, 98, 0.08);
}

.hero-action svg {
  width: 28px;
  height: 28px;
}

.brand-badge {
  position: absolute;
  left: 50%;
  bottom: 126px;
  z-index: 2;
  width: 74px;
  height: 74px;
  margin-left: -37px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 34px rgba(67, 88, 83, 0.14);
}

.brand-mark {
  display: block;
  width: 54px;
  line-height: 0;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-card {
  position: relative;
  z-index: 3;
  margin-top: -96px;
  padding: 30px 32px 24px;
  border-radius: 34px 34px 0 0;
  background: var(--card);
  box-shadow: var(--card-shadow);
  flex: 1 1 auto;
}

.auth-card h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 6vw, 2.65rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.name-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-shell {
  display: block;
  padding: 0;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field-shell:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 100, 25, 0.3);
  box-shadow: 0 12px 28px rgba(255, 100, 25, 0.12);
  background: #f6f6f8;
}

.field-shell.is-invalid {
  border-color: rgba(204, 74, 58, 0.32);
  background: var(--danger-bg);
}

.name-input {
  width: 100%;
  min-height: 94px;
  padding: 0 24px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.name-input::placeholder {
  color: var(--placeholder);
}

.helper-link {
  margin: 2px 0 18px;
  padding-left: 10px;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
}

.helper-link[hidden] {
  display: none;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 500;
}

.remember-checkbox {
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 8px;
  accent-color: var(--accent);
}

.continue-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 68px;
  border-radius: 22px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.continue-button {
  margin-top: 10px;
  border: 0;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff8f4;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(255, 100, 25, 0.28);
}

.continue-button.is-ready {
  box-shadow: 0 20px 36px rgba(255, 100, 25, 0.36);
  filter: saturate(1.08) brightness(1.04);
}

.continue-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.continue-button.is-blocked,
.continue-button:disabled:not(.is-loading) {
  background: linear-gradient(180deg, #ffb18f 0%, #f29a73 100%);
  color: rgba(255, 248, 244, 0.82);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.12) brightness(0.96);
  transform: none;
}

.continue-button.is-loading:disabled {
  cursor: wait;
  opacity: 0.8;
}

.secondary-button {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.button-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.continue-button.is-loading .button-label {
  display: none;
}

.continue-button.is-loading .button-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .hero-panel {
    min-height: 50vh;
  }

  .hero-actions {
    top: 16px;
    right: 16px;
  }

  .hero-action {
    width: 52px;
    height: 52px;
  }

  .page-alert {
    top: 84px;
    left: 14px;
    right: 14px;
    gap: 14px;
    padding: 18px 16px 18px;
    border-radius: 24px;
  }

  .page-alert-icon {
    width: 32px;
    height: 32px;
    margin-top: 2px;
  }

  .page-alert-close {
    width: 36px;
    height: 36px;
    margin: -2px -2px 0 0;
  }

  .page-alert-close svg {
    width: 22px;
    height: 22px;
  }

  .brand-badge {
    bottom: 98px;
    width: 68px;
    height: 68px;
    margin-left: -34px;
    border-radius: 22px;
  }

  .auth-card {
    margin-top: 0px;
    padding: 24px 18px 20px;
    border-radius: 28px 28px 0 0;
  }

  .name-input {
    min-height: 78px;
    padding: 0 20px;
  }

  .continue-button,
  .secondary-button {
    min-height: 60px;
    border-radius: 18px;
  }

  .helper-link {
    margin-bottom: 10px;
    padding-left: 2px;
  }
}
