body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(103, 232, 249, 0.18), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(244, 63, 122, 0.14), transparent 30%),
    linear-gradient(145deg, #07101f 0%, #10204a 48%, #07101f 100%);
  color: #f8fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(103, 232, 249, 0.16);
  background: rgba(7, 16, 31, 0.92);
  padding: 0 clamp(18px, 4vw, 52px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f8fbff;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #67e8f9, #6d28d9);
  color: #fff;
  font-size: 0;
}

.brand-mark::before {
  content: "sv";
  font-size: 14px;
  font-weight: 1000;
}

.nav a {
  color: #d8e4f4;
  text-decoration: none;
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: clamp(28px, 6vh, 72px) 18px;
}

.login-panel {
  width: min(100%, 480px);
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(15, 27, 54, 0.88);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-panel h1 {
  margin: 18px 0 0;
  color: #fff;
  font-size: 48px;
  line-height: 1;
}

.login-lead {
  margin: 14px 0 0;
  color: #b9c6da;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.5;
}

.auth-status {
  margin-top: 18px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  color: #f8fbff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.logout-notice {
  display: grid;
  gap: 6px;
}

.logout-notice[hidden] {
  display: none;
}

.logout-notice strong {
  color: #99f6e4;
}

.logout-notice a {
  color: #67e8f9;
}

.login-field {
  display: block;
  margin-top: 18px;
}

.login-field span {
  display: block;
  margin-bottom: 8px;
  color: #b9c6da;
  font-size: 13px;
  font-weight: 900;
}

.login-field input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  outline: none;
}

.button,
.google-auth-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: linear-gradient(90deg, #67e8f9, #99f6e4);
  color: #06111d;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

#loginForm .button {
  margin-top: 18px;
}

.login-actions {
  display: grid;
  margin-top: 12px;
}

.button-dark,
.google-auth-button {
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #b9c6da;
  font-size: 13px;
  font-weight: 900;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(103, 232, 249, 0.22);
}

.google-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.consent-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  color: #b9c6da;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.consent-row a {
  color: #67e8f9;
}

@media (max-width: 640px) {
  .topbar {
    min-height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 14px;
  }

  .auth-main {
    min-height: calc(100vh - 126px);
    padding: 24px 14px;
  }

  .login-panel {
    border-radius: 18px;
    padding: 22px 18px;
  }

  .login-panel h1 {
    font-size: 40px;
  }
}
