:root {
  color-scheme: dark;
  --gold: #d5ad61;
  --gold-soft: #9d7a3d;
  --line: rgba(213, 173, 97, 0.32);
  --text: #f6f0dc;
  --muted: rgba(245, 238, 217, 0.43);
  --panel: rgba(6, 6, 6, 0.92);
  --input: rgba(33, 32, 29, 0.88);
}

@font-face {
  font-family: "Prompt";
  src: url("/assets/fonts/prompt-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Prompt", sans-serif;
  background: #0a0a0a;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.member-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #111;
}

.phone-canvas {
  position: relative;
  width: min(100vw, 438px);
  min-height: 100vh;
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--text);
  background: #151515 url("/assets/member/reference/login-backdrop.webp") center top / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.55);
  scrollbar-width: none;
}

.phone-canvas::-webkit-scrollbar {
  display: none;
}

.top-actions,
.brand-logo,
.login-panel,
.register-row {
  position: relative;
  z-index: 1;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  padding-right: 0;
}

.line-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 134px;
  height: 34px;
  padding: 0 12px 0 6px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(#7de101, #1bb60e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 2px 6px rgba(0, 0, 0, 0.38);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  color: #fbdeb2;
  font-size: 12px;
  white-space: nowrap;
}

.auth-back img {
  width: 28px;
  height: 40px;
}

@media (max-width: 360px) {
  .member-top-actions {
    gap: 6px;
  }

  .member-top-actions .line-support {
    min-width: 0;
    padding-inline: 4px;
  }
}

.line-support img {
  width: 22px;
  height: 22px;
}

.language-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.language-button img {
  display: block;
  width: 40px;
  height: 40px;
}

.brand-logo {
  display: block;
  width: 321px;
  max-width: 82%;
  margin: 36px auto 42px;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.58));
}

.login-panel {
  width: min(360px, calc(100vw - 76px));
  min-height: 468px;
  margin: 0 auto;
  padding: 19px 18px 18px;
  border: 1px solid rgba(184, 135, 47, 0.54);
  border-radius: 15px;
  background:
    radial-gradient(circle at 62% 58%, rgba(169, 129, 73, 0.14), transparent 8.4rem),
    linear-gradient(120deg, rgba(0, 0, 0, 0.98), var(--panel));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.welcome {
  margin: 0 0 13px;
  color: rgba(214, 174, 98, 0.85);
  font-size: 12px;
  letter-spacing: 0;
  text-align: center;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 41px;
  margin-bottom: 15px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
}

.login-tab {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(230, 222, 204, 0.46);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.login-tab.is-active {
  border-color: rgba(213, 173, 97, 0.72);
  color: #f8d78a;
  background: linear-gradient(180deg, rgba(83, 60, 23, 0.88), rgba(47, 34, 15, 0.74));
}

.field-stack {
  border: 1px solid rgba(189, 151, 85, 0.43);
  border-radius: 9px;
  overflow: hidden;
  background: var(--input);
}

.input-row {
  position: relative;
  display: block;
  min-height: 71px;
  padding: 11px 14px 9px;
}

.input-row + .input-row {
  border-top: 1px solid rgba(189, 151, 85, 0.2);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(213, 173, 97, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.input-row input {
  width: 100%;
  height: 27px;
  border: 0;
  outline: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
}

.password-row input {
  padding-right: 36px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  color: rgba(183, 145, 73, 0.68);
  background: transparent;
  cursor: pointer;
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.verify-label {
  margin: 14px 0 7px 13px;
  color: rgba(230, 224, 212, 0.35);
  font-size: 11px;
  font-weight: 700;
}

.turnstile-shell {
  position: relative;
  min-height: 65px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(20, 20, 23, 0.93);
}

.turnstile-widget {
  min-height: 65px;
}

.turnstile-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.turnstile-retry {
  display: block;
  min-width: 112px;
  height: 34px;
  margin: 0 auto 10px;
  border: 1px solid rgba(213, 173, 97, 0.68);
  border-radius: 6px;
  color: #f2cf83;
  background: rgba(13, 13, 13, 0.9);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.turnstile-retry[hidden] {
  display: none;
}

.turnstile-shell[data-state="error"] {
  min-height: 91px;
  border: 1px solid rgba(225, 98, 74, 0.45);
}

.turnstile-shell[data-state="error"] .turnstile-status {
  position: static;
  width: auto;
  height: auto;
  padding: 5px 10px 7px;
  clip: auto;
  color: #efb8ab;
  font-size: 11px;
  text-align: center;
  white-space: normal;
}

.login-error {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(225, 98, 74, 0.48);
  border-radius: 7px;
  color: #ffd0c7;
  background: rgba(91, 25, 18, 0.38);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.login-error[hidden] {
  display: none;
}

.login-button {
  width: 100%;
  height: 55px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.96), rgba(22, 22, 22, 0.96));
  font-size: 14px;
  font-weight: 900;
  cursor: not-allowed;
  opacity: 0.45;
}

.login-button.is-ready {
  border-color: rgba(213, 173, 97, 0.52);
  color: #16110a;
  background: linear-gradient(180deg, #f2d889, #a97931);
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 12px 26px rgba(144, 93, 22, 0.2);
}

.forgot-link {
  display: block;
  margin-top: 19px;
  color: rgba(213, 173, 97, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.register-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(410px, calc(100vw - 54px));
  margin: 17px auto 0;
  padding-top: 15px;
  border-top: 1px solid rgba(213, 173, 97, 0.16);
  color: rgba(237, 232, 221, 0.46);
  font-size: 12px;
  font-weight: 800;
}

.register-row a {
  display: inline-grid;
  place-items: center;
  min-width: 79px;
  height: 35px;
  border: 1px solid rgba(213, 173, 97, 0.65);
  border-radius: 6px;
  color: #f2cf83;
  background: rgba(13, 13, 13, 0.78);
}

@media (max-width: 390px) {
  .phone-canvas {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 292px;
    margin-top: 30px;
    margin-bottom: 36px;
  }

  .login-panel {
    width: calc(100vw - 40px);
  }
}
