.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-shell {
  width: min(1060px, calc(100% - 32px));
  margin: 24px auto;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 18px;
}

.guest-link,
.continue-guest {
  color: #725748;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.guest-link {
  padding: 8px 12px;
  border: 1px solid rgba(73, 61, 60, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
}

.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 620px;
  overflow: hidden;
  border: 1.5px solid rgba(73, 61, 60, 0.13);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 24px 70px rgba(92, 58, 39, 0.14);
  backdrop-filter: blur(12px);
}

.login-story {
  position: relative;
  overflow: hidden;
  padding: 46px 46px 38px;
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 239, 198, 0.95), transparent 34%),
    linear-gradient(150deg, #cdb493, #b6897b 58%, #8e868c);
  color: #fffaf0;
}

.login-story::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 360px;
  height: 240px;
  border-radius: 50%;
  background: rgba(56, 80, 65, 0.28);
  content: "";
}

.login-halo {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 245, 215, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 245, 215, 0.06),
    0 0 0 58px rgba(255, 245, 215, 0.04);
  transform: translateX(-50%);
}

.login-character {
  position: relative;
  z-index: 1;
  display: block;
  width: min(300px, 72%);
  margin: 0 auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(48, 31, 32, 0.2));
  animation: ju-e-idle 3.2s ease-in-out infinite;
}

.login-story .eyebrow {
  position: relative;
  z-index: 1;
  color: #f8e5ba;
}

.login-story h1 {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.16;
}

.login-story > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 15px 0 22px;
  color: rgba(255, 249, 234, 0.84);
  font-size: 11px;
  line-height: 1.8;
}

.login-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-benefits span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 247, 224, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.12);
  font-size: 9px;
  font-weight: 800;
}

.login-benefits b {
  margin-right: 3px;
}

.login-story blockquote {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: rgba(255, 249, 234, 0.72);
  font-size: 9px;
  line-height: 1.7;
}

.login-panel {
  display: flex;
  padding: 44px 42px;
  align-items: center;
}

.login-panel > div {
  width: 100%;
}

.login-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

.login-subtitle {
  margin: 8px 0 24px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form > label:not(.consent-row) {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.login-form input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(73, 61, 60, 0.15);
  border-radius: 11px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.login-form input:focus {
  border-color: rgba(77, 128, 113, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 151, 127, 0.12);
}

.phone-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 7px;
}

.phone-prefix {
  display: grid;
  min-height: 41px;
  place-items: center;
  border-radius: 11px;
  background: #f1e4d2;
  color: #765849;
  font-size: 10px;
}

.send-code-button {
  min-height: 41px;
  padding: 7px 10px;
  border: 1px solid rgba(73, 61, 60, 0.14);
  border-radius: 10px;
  background: #f3e2cc;
  color: #745447;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.send-code-button:disabled {
  cursor: default;
  opacity: 0.52;
}

.consent-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.55;
}

.consent-row input {
  margin-top: 2px;
  accent-color: #668c79;
}

.login-message {
  min-height: 15px;
  margin: 0;
  color: #a14d42;
  font-size: 9px;
  line-height: 1.55;
}

.login-message.is-ok {
  color: #558166;
}

.login-submit {
  min-height: 43px;
  border: 0;
  border-radius: 11px;
  background: #6f927e;
  color: #fffaf0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.login-submit:disabled {
  cursor: default;
  opacity: 0.55;
}

.continue-guest {
  display: inline-block;
  margin-top: 18px;
}

.signed-account {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 13px;
  align-items: center;
  margin: 22px 0 15px;
  padding: 14px;
  border-radius: 16px;
  background: #f4e7d5;
}

.signed-account > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #fff5dc;
  font-size: 29px;
}

.signed-account strong,
.signed-account small {
  display: block;
}

.signed-account strong {
  font-size: 14px;
}

.signed-account small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.signed-stats {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 9px;
}

.signed-stats strong {
  float: right;
  color: #6d5547;
}

.signed-stats .sync-ready {
  color: #568067;
}

.logout-link {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #a2594d;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px 0;
  color: var(--ink-soft);
  font-size: 8px;
}

@media (max-width: 780px) {
  .login-shell {
    width: min(100% - 20px, 520px);
    margin: 10px auto;
  }

  .login-header {
    padding: 8px 2px 13px;
  }

  .login-main {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 300px;
    padding: 28px 25px 24px;
  }

  .login-halo {
    top: 22px;
    width: 240px;
    height: 240px;
  }

  .login-character {
    width: 170px;
    margin-top: -8px;
  }

  .login-story h1 {
    font-size: 29px;
  }

  .login-benefits {
    gap: 5px;
  }

  .login-panel {
    padding: 30px 23px 34px;
  }

  .phone-row {
    grid-template-columns: 40px 1fr;
  }

  .send-code-button {
    grid-column: 2;
  }

  .login-footer {
    display: grid;
    gap: 4px;
    text-align: center;
  }
}
