.auth-entry {
  flex: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--gold);
  color: var(--bg);
  font: 700 .7rem/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s, filter .18s;
}

.auth-entry:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-entry:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.auth-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  border: 1px solid var(--line, #3a2c1e);
  border-radius: 22px;
  padding: 34px;
  background: var(--card, #251c13);
  color: var(--cream, #f3e9d6);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
  font-family: var(--body, system-ui, sans-serif);
}

.auth-dialog::backdrop {
  background: rgba(14, 10, 7, .78);
  backdrop-filter: blur(6px);
}

.auth-dialog h2 {
  margin: 5px 0 8px;
  font: 800 clamp(2rem, 8vw, 2.7rem)/1 var(--display, system-ui, sans-serif);
  letter-spacing: -.025em;
}

.auth-kicker {
  color: var(--gold, #eba63c);
  font: 700 .66rem/1.4 var(--mono, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-intro {
  margin: 0 38px 25px 0;
  color: var(--sand, #e6d4b2);
  line-height: 1.5;
}

.auth-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line, #3a2c1e);
  border-radius: 50%;
  background: var(--card-2, #2c2117);
  color: var(--muted, #a8957a);
  font: 400 1.35rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.auth-method {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 14px;
  font: 700 .82rem/1.25 var(--body, system-ui, sans-serif);
  cursor: pointer;
  transition: border-color .18s, transform .18s, opacity .18s;
}

.auth-method:hover:not(:disabled) { transform: translateY(-1px); }
.auth-method:focus-visible,
.auth-close:focus-visible,
.auth-input:focus-visible { outline: 2px solid var(--gold, #eba63c); outline-offset: 2px; }
.auth-method:disabled, .auth-input:disabled { cursor: wait; opacity: .55; }

.auth-google {
  justify-content: flex-start;
  border: 1px solid #fff;
  background: #fff;
  color: #17120d;
}

.auth-google svg { width: 22px; height: 22px; flex: none; }
.auth-google > span:nth-of-type(1) { flex: 1; text-align: center; }

.auth-recommended {
  border-radius: 999px;
  padding: 5px 7px;
  background: #f3e9d6;
  color: #6c4d18;
  font: 700 .55rem/1 var(--mono, monospace);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted-2, #7e6e58);
  font: 400 .62rem/1 var(--mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-divider::before, .auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line, #3a2c1e);
  content: '';
}

.auth-label {
  display: block;
  margin-bottom: 7px;
  color: var(--sand, #e6d4b2);
  font: 600 .78rem/1.2 var(--body, system-ui, sans-serif);
}

.auth-input {
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border: 1px solid var(--line, #3a2c1e);
  border-radius: 10px;
  padding: 0 13px;
  background: var(--bg-2, #1f1811);
  color: var(--cream, #f3e9d6);
  font: 400 1rem/1 var(--body, system-ui, sans-serif);
}

.auth-input::placeholder { color: var(--muted-2, #7e6e58); }
.auth-email { border: 1px solid var(--line, #3a2c1e); background: var(--card-2, #2c2117); color: var(--cream, #f3e9d6); }
.auth-email:hover:not(:disabled) { border-color: var(--gold, #eba63c); }

.auth-demo {
  background: transparent;
  border: 1px solid var(--gold, #eba63c);
  color: var(--gold, #eba63c);
  margin-top: 1rem;
}

.auth-demo-note {
  color: var(--muted, #a9977d);
  font-size: .78rem;
  margin: .55rem 0 0;
  text-align: center;
}

.auth-message {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--gold, #eba63c);
  font-size: .9rem;
}

.auth-callback-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #17120d;
  color: #f3e9d6;
  font-family: system-ui, sans-serif;
}

.auth-callback-card { width: min(460px, 100%); border: 1px solid #3a2c1e; border-radius: 22px; padding: 36px; background: #251c13; }
.auth-callback-card h1 { margin: 0 0 12px; font-size: 2rem; }
.auth-callback-card p { color: #e6d4b2; line-height: 1.55; }
.auth-callback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.auth-callback-actions a { border: 1px solid #3a2c1e; border-radius: 999px; padding: 10px 14px; color: #f3e9d6; text-decoration: none; }
.auth-callback-actions a:first-child { border-color: #eba63c; background: #eba63c; color: #17120d; font-weight: 700; }

@media (max-width: 680px) {
  .auth-entry { order: 2; margin-left: 0; padding: 7px 12px; }
}

@media (max-width: 430px) {
  .auth-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 28px 20px 22px; border-radius: 18px; }
  .auth-recommended { font-size: .5rem; }
  .auth-google { gap: 7px; padding-inline: 10px; }
}
