:root {
  --auth-bg-elevated: #26262b;
  --auth-bg-soft: #1f1f23;
  --auth-bg-muted: #222226;
  --auth-border: #33333a;
  --auth-text-main: #f3f3f7;
  --auth-text-muted: #b0b0c0;
  --auth-accent: #1e63d8;
  --auth-accent-hover: #2f75eb;
  --auth-accent-soft: rgba(30, 99, 216, 0.24);
  --auth-danger: #ff7a7a;
  --auth-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.auth-page {
  min-height: 100dvh;
  background: radial-gradient(circle at top left, #23232a 0, #15151a 40%, #101014 100%);
  color: var(--auth-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page.has-env-banner {
  padding-top: 14px;
}

.env-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 14px;
  z-index: 10000;
  pointer-events: none;
}

.env-banner-beta { background: #b00000; }
.env-banner-alpha { background: #945200; }

.auth-shell {
  min-height: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.auth-panel {
  width: 330px;
  max-width: calc(100vw - 32px);
  padding: 30px 40px;
  text-align: center;
  background: linear-gradient(145deg, var(--auth-bg-elevated), var(--auth-bg-soft));
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  box-shadow: var(--auth-shadow);
}

.auth-panel-header {
  margin-bottom: 20px;
}

.auth-panel-kicker {
  margin: 0 0 8px;
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-panel-title {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.auth-panel-subtitle {
  margin: 8px 0 0;
  color: var(--auth-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-primary-action,
.auth-secondary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
}

.auth-primary-action {
  border: none;
  background: var(--auth-accent);
  color: #fff;
  cursor: pointer;
}

.auth-primary-action:hover {
  background: var(--auth-accent-hover);
}

.auth-primary-action:active,
.auth-secondary-action:active {
  transform: translateY(1px);
}

.auth-secondary-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--auth-border);
  color: var(--auth-text-main);
}

.auth-secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 678px) {
  .auth-shell {
    padding: 20px 16px;
  }

  .auth-panel {
    width: min(330px, calc(100vw - 32px));
    padding: 24px 20px;
    border-radius: 12px;
  }

  .auth-primary-action,
  .auth-secondary-action {
    font-size: 1rem;
    padding: 14px;
  }
}
