/* ============================================================
   Light registration — matches UNO CLUB (cream / red / gold)
   ============================================================ */
@keyframes authFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes authPop { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }

.auth-btn {
  background: linear-gradient(180deg, #e25747, #c0392f);
  border: 2px solid rgba(247, 239, 217, .75);
  color: #fff6e4;
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 0 #7f251e, 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .08s, box-shadow .12s;
}
.auth-ico { font-size: 14px; }
.auth-btn:hover { filter: brightness(1.05); box-shadow: 0 6px 0 #7f251e, 0 12px 22px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.auth-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #7f251e, 0 4px 10px rgba(0, 0, 0, .3); }
.auth-btn[hidden] { display: none !important; }

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5b352b, #3a1f19);
  border: 2px solid rgba(247, 239, 217, .55);
  box-shadow: 0 4px 0 #1a0c09, 0 8px 18px rgba(0, 0, 0, .35);
  color: var(--cream, #f7efd9);
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 12.5px;
}
.auth-user[hidden] { display: none !important; }
.auth-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #2f9e5b); box-shadow: 0 0 8px rgba(47, 158, 91, .9); flex: none; }
.auth-dot.guest { background: var(--gold, #f2d16b); box-shadow: 0 0 8px rgba(242, 209, 107, .9); }
.auth-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-out {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(247, 239, 217, .3);
  color: var(--cream, #f7efd9);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
}
.auth-out:hover { background: var(--red, #d6473a); border-color: #fff6e4; }

/* ---------- modal ---------- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(14, 7, 6, .72);
  backdrop-filter: blur(9px);
  animation: authFade .16s ease-out;
}
.auth-modal[hidden] { display: none !important; }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 372px;
  padding: 26px 28px 22px;
  border-radius: 28px;
  color: var(--ink-700, #3a1f19);
  background: linear-gradient(180deg, #fcf6e7, #efdfbf);
  border: 3px solid #fffaf0;
  box-shadow: 0 0 0 3px rgba(214, 71, 58, .45), 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .5);
  animation: authPop .28s cubic-bezier(.2, .8, .3, 1.3);
  font-family: var(--font-ui, 'Nunito', sans-serif);
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px dashed rgba(138, 106, 74, .35);
  pointer-events: none;
}

.auth-head { position: relative; display: flex; align-items: flex-start; justify-content: center; margin-bottom: 16px; }
.auth-kicker {
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-600, #bf382d);
  text-align: center;
  margin-bottom: 2px;
}
.auth-title {
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--ink-700, #3a1f19);
  text-align: center;
  line-height: 1.05;
}
.auth-title-wrap { display: flex; flex-direction: column; align-items: center; }
.auth-close {
  position: absolute;
  top: -6px; right: -6px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #fffaf0;
  background: linear-gradient(180deg, #6b4a36, #4a2a22);
  color: var(--cream, #f7efd9);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 3px 0 #2b1610, 0 6px 14px rgba(0, 0, 0, .35);
}
.auth-close:hover { background: linear-gradient(180deg, #d6473a, #bf382d); }

.auth-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--cream-300, #e3d1ae);
  box-shadow: inset 0 2px 4px rgba(74, 42, 34, .18);
  margin-bottom: 16px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 9px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: var(--brown-soft, #6b4a36);
  transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab:hover { color: var(--ink-700, #3a1f19); }
.auth-tab.active {
  background: linear-gradient(180deg, #e25747, #c0392f);
  color: #fff6e4;
  box-shadow: 0 3px 0 #7f251e, inset 0 1px 0 rgba(255, 255, 255, .25);
}

.auth-card label {
  position: relative;
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brown-muted, #8a6a4a);
  margin-bottom: 12px;
}
.auth-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 2px solid #c9b185;
  background: linear-gradient(180deg, #fffdf7, #f7eed9);
  color: var(--ink-700, #3a1f19);
  font-family: var(--font-ui, 'Nunito', sans-serif);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 2px 4px rgba(74, 42, 34, .1);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.auth-card input::placeholder { color: #a8916f; font-weight: 700; }
.auth-card input:focus {
  outline: none;
  border-color: var(--red, #d6473a);
  box-shadow: 0 0 0 3px rgba(214, 71, 58, .22), inset 0 2px 4px rgba(74, 42, 34, .08);
}

.auth-err {
  min-height: 16px;
  margin: 2px 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--red-600, #bf382d);
  text-align: center;
}

.auth-submit {
  width: 100%;
  padding: 12px 16px;
  border-radius: 13px;
  border: 2px solid #fff6e4;
  background: linear-gradient(180deg, #e25747, #c0392f);
  color: #fff6e4;
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 0 #7f251e, 0 10px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .08s, box-shadow .12s;
}
.auth-submit:hover { filter: brightness(1.05); }
.auth-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #7f251e, 0 4px 10px rgba(0, 0, 0, .3); }

.auth-guest {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border-radius: 13px;
  border: 2px solid #c9b185;
  background: linear-gradient(180deg, #fdf8ea, #eddfc0);
  color: var(--ink-600, #4a2a22);
  font-family: var(--font-display, 'Nunito', sans-serif);
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #c9b185;
  transition: transform .08s, background .15s;
}
.auth-guest:hover { background: linear-gradient(180deg, #fffdf5, #f3e7cc); }
.auth-guest:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9b185; }

.auth-note {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--brown-muted, #8a6a4a);
}

@media (max-width: 420px) {
  .auth-card { padding: 22px 20px 18px; border-radius: 24px; }
  .auth-title { font-size: 23px; }
}
/* keep the top bar from getting crowded */
#topbar .conn { gap: 6px; }
@media (max-width: 1180px) {
  .auth-lbl { display: none; }
  .auth-ico { margin-right: 0; }
  .auth-btn { padding: 7px 10px; }
}
/* top bar must never overlap itself when it wraps */
#topbar { flex-wrap: wrap; row-gap: 8px; }
.conn { row-gap: 8px; }
@media (max-width: 1400px) {
  .conn input { width: 190px; }
}
/* compact icon-only entry so the top bar stays calm */
.auth-btn { width: 36px; height: 36px; padding: 0 !important; border-radius: 12px; display: inline-grid; place-items: center; font-size: 0 !important; }
.auth-lbl { display: none !important; }
@media (max-width: 1180px) { .auth-btn { width: 34px; height: 34px; } }
