.auth-wait { display: none; }
.auth-locked > main, .auth-locked > .app-shell { display: none; }
.auth-tabs[hidden] { display: none; }
.auth-checking .auth-card { display: none; }
.auth-checking .auth-wait { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #56777b; text-align: center; font-size: 14px; max-width: 320px; }
.auth-wait button { border: 1px solid #c8dfdc; border-radius: 8px; background: #fff; color: #0a8e76; padding: 9px 22px; font: inherit; cursor: pointer; }
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(45, 212, 191, .2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, .18), transparent 30%),
    linear-gradient(145deg, #eef8f7 0%, #f7fbff 50%, #edf7f4 100%);
}

.auth-gate:before,
.auth-gate:after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-gate:before {
  inset: 0;
  opacity: .44;
  background-image:
    linear-gradient(rgba(18, 78, 91, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 78, 91, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.auth-gate:after {
  width: 360px;
  height: 360px;
  right: -110px;
  bottom: -130px;
  border-radius: 50%;
  border: 1px solid rgba(18, 78, 91, .12);
  box-shadow: inset 0 0 70px rgba(45, 212, 191, .12), 0 0 90px rgba(56, 189, 248, .16);
}

.auth-card {
  position: relative;
  width: min(430px, 100%);
  overflow: hidden;
  border: 1px solid rgba(136, 165, 173, .35);
  border-radius: 20px;
  padding: 34px 30px 30px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 26px 75px rgba(18, 55, 67, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

.auth-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #15c9a7, #38bdf8, #113f4d);
}

.auth-brand {
  color: #0aa886;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-card h1 {
  margin: 10px 0 6px;
  color: #102f3a;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
}

.auth-card p {
  margin: 0 0 24px;
  color: #7b8e95;
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid rgba(208, 222, 224, .85);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(236, 244, 244, .9), rgba(244, 249, 248, .9));
  box-shadow: inset 0 1px 8px rgba(17, 63, 77, .05);
}

.auth-tabs button {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #6f8187;
  font: inherit;
  font-weight: 800;
}

.auth-tabs button.active {
  color: #0d806b;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 60, 75, .1), inset 0 0 0 1px rgba(255, 255, 255, .9);
}

.auth-form label {
  display: block;
  margin: 15px 0;
  color: #506a72;
  font-size: 13px;
  font-weight: 750;
}

.auth-form input {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 1px solid #dce8e8;
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  color: #102f3a;
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-form input:focus {
  border-color: #19bea0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 201, 167, .13), 0 8px 22px rgba(18, 55, 67, .06);
}

.auth-submit {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #123947, #0f5962 55%, #12b995);
  color: #fff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(17, 63, 77, .23);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-message {
  min-height: 20px;
  margin-top: 12px !important;
  color: #c95d55 !important;
  font-size: 13px !important;
}

.auth-logout {
  border: 0;
  background: transparent;
  color: #719099;
  font-size: 12px;
  cursor: pointer;
}
