:root {
  color-scheme: dark;
  --bg: #0b101b;
  --card: #121b2a;
  --text: #f3f1eb;
  --muted: #a7b4c7;
  --gold: #f5ca78;
  --mint: #77ddbd;
  --line: #354055;
  --danger: #ffad9f;
}

* { box-sizing: border-box; }

body {
  min-width: 0;
  margin: 0;
  background: radial-gradient(ellipse at 8% 35%, #192d2b55, transparent 55%), var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

header, footer {
  width: min(1280px, 100%);
  margin: auto;
  padding: 25px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header { border-bottom: 1px solid #263044; font-size: 14px; }
.header-link { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 19px; }
.brand img { object-fit: contain; flex: 0 0 auto; }
.brand-note { color: var(--muted); font-size: 13px; font-weight: 400; }

main {
  width: min(1280px, 100%);
  margin: auto;
  padding: 65px 36px 80px;
  display: grid;
  grid-template-columns: 1.2fr minmax(360px, 1fr);
  gap: 90px;
  align-items: center;
}

.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 24px 0; font: 400 clamp(42px, 5.1vw, 68px)/1.1 Georgia, serif; letter-spacing: -.04em; }
h1 em { color: var(--gold); font-style: normal; }
.intro > p { max-width: 530px; color: var(--muted); font-size: 18px; }
.steps { display: grid; gap: 10px; margin: 35px 0 0; padding: 0 20px; border-left: 1px solid #3a6256; color: var(--mint); }

.entry {
  min-width: 0;
  padding: 36px;
  border: 1px solid #3d4655;
  border-radius: 20px;
  background: linear-gradient(145deg, #172230, #111724);
  box-shadow: 0 22px 80px #00000026;
}

.entry-mark img { display: block; object-fit: contain; }
.entry h2 { margin: 16px 0 8px; font-size: 27px; line-height: 1.2; }
.entry-lead { margin: 0; color: var(--muted); font-size: 15px; }

.button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 18px;
  border: 1px solid #566174;
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease, background .15s ease;
}

.button:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .62; }
.google { background: #fff; border-color: #747775; color: #1f1f1f; }
.google-mark { width: 20px; height: 20px; flex: 0 0 auto; }
.primary { background: var(--gold); border-color: var(--gold); color: #15191f; }

.status { min-height: 22px; margin: 8px 0 0; font-size: 13px; }
.status-muted { color: var(--muted); }
.status-error { color: var(--danger); }
.status-success { color: var(--mint); }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: #8290a4; font-size: 12px; }
.divider::before, .divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #0d1522; }
.tab { padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.tab.is-active { background: #293548; color: var(--text); box-shadow: 0 1px 2px #0005; }
.tab:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.form-description { margin: 15px 0 14px; color: var(--muted); font-size: 13px; }

.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 10px 13px;
  border: 1px solid #536075;
  border-radius: 8px;
  outline: 0;
  background: #0d1522;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px #77ddbd33; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field small { color: #8290a4; font-size: 12px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 92px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 7px 6px; border: 0; background: transparent; color: var(--mint); font: inherit; font-size: 12px; cursor: pointer; }
.password-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
.submit { margin-top: 10px; }

.guest-link { display: block; margin: 17px 0 0; color: var(--gold); font-size: 14px; font-weight: 650; text-align: center; }
.guest-link span { display: inline-block; margin-left: 4px; transition: transform .15s ease; }
.guest-link:hover span { transform: translateX(3px); }
.details { margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.details ul { padding-left: 20px; color: var(--muted); }
.details p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.legal { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.legal a { text-decoration: underline; }

footer { border-top: 1px solid #263044; color: var(--muted); font-size: 13px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[hidden] { display: none !important; }

@media (max-width: 850px) {
  main { max-width: 650px; grid-template-columns: 1fr; gap: 35px; padding-top: 40px; }
  .intro h1 br { display: none; }
  .steps { margin-top: 25px; }
}

@media (max-width: 500px) {
  header, footer { padding: 20px 18px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand img { width: 32px; height: 32px; }
  .brand-note { display: none; }
  .header-link { font-size: 12px; }
  main { padding: 36px 18px 58px; }
  .entry { padding: 24px 20px; }
}

@media (max-width: 350px) {
  .header-link { max-width: 100px; text-align: right; }
  .entry { padding-inline: 16px; }
}
