/* Log in / sign up screens */

.hud .lang-toggle { margin-inline-start: auto; }

.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 16px 32px;
}

.panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 44px clamp(20px, 5vw, 32px) 26px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #3a2378, #241250);
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 0 #120634, 0 30px 70px rgba(139, 92, 246, 0.35);
  text-align: center;
}

.emblem {
  position: absolute;
  top: -34px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-left: -34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #fff 6%, var(--violet) 30%, #3b1d8f 90%);
  box-shadow: 0 0 0 4px var(--gold), 0 8px 18px rgba(0, 0, 0, 0.45);
  font: 800 34px/1 var(--font-display);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.panel h1 {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 800;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.panel-sub { margin-top: 4px; color: var(--muted); font-weight: 600; }

.btn-google {
  width: 100%;
  margin-top: 22px;
  padding: 12px 18px;
  background: #fff;
  color: #1f1f1f;
  font: 700 16px/1.2 var(--font-body);
  box-shadow: 0 4px 0 #c9bff0;
}
.btn-google svg { width: 20px; height: 20px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: start;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 4, 40, 0.45);
  color: #fff;
  font: 600 16px/1.3 var(--font-body);
  transition: border-color 0.15s ease;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-inline-end: 72px; }
.reveal {
  position: absolute;
  inset-block: 6px;
  inset-inline-end: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font: 700 13px/1 var(--font-body);
  cursor: pointer;
}
.reveal:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

.form-error {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 77, 109, 0.16);
  border: 1px solid rgba(255, 77, 109, 0.5);
  color: #ffc2cd;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.btn-submit {
  margin-top: 6px;
  padding: 14px 20px;
  font-size: 20px;
  letter-spacing: 1px;
}
.btn-submit[disabled] { cursor: progress; filter: saturate(0.6); transform: none; }

.switch {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
}
.switch a { color: var(--gold); font-weight: 800; text-decoration: none; }
.switch a:hover { text-decoration: underline; }

.guest-link {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.guest-link:hover { color: #fff; text-decoration: underline; }
