.portal-auth {
  --bg: #0B1020;
  --surface: #121A2B;
  --surface-2: #17233a;
  --text: #E8EEF8;
  --sub: #9FB0CC;
  --accent: #24D1FF;
  --border: #26324A;
  --glow: rgba(36, 209, 255, 0.22);

  font-family: 'Geist', system-ui, sans-serif;

  background:
    radial-gradient(
      900px 500px at 70% -10%,
      rgba(36, 209, 255, 0.09),
      transparent 60%
    ),
    var(--bg);

  color: var(--text);

  margin: 0;

  min-height: 100vh;

  line-height: 1.6;
}

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

/* =========================
   TOP FRAME
========================= */

.portal-auth .top-frame {
  position: fixed;
  inset: 0 0 auto 0;

  z-index: 20;

  height: 64px;

  background: rgba(11, 16, 32, 0.9);

  border-bottom: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 0 1.2rem;

  backdrop-filter: blur(10px);
}

/* =========================
   BRAND
========================= */

.portal-auth .brand {
  display: flex;
  align-items: center;

  gap: 10px;

  text-decoration: none;
}

.portal-auth .brand-logo {
  width: 38px;
  height: 38px;

  object-fit: contain;

  display: block;
}

.portal-auth .brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;

  color: var(--text);

  font-size: 1rem;
}

/* =========================
   NAVIGATION
========================= */

.portal-auth .top-menu {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 1.2rem;
}

.portal-auth .top-menu a {
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;

  padding: 0 .75rem;

  background: transparent;

  border: 1px solid transparent;
  border-radius: 8px;

  color: var(--sub);

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1;

  text-decoration: none;

  cursor: pointer;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.portal-auth .top-menu a:hover {
  border-color: var(--border);

  color: var(--text);

  background: rgba(255,255,255,.03);
}

/* =========================
   CTA BUTTON
========================= */

.portal-auth .topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  text-decoration: none;

  border: 1px solid var(--border);

  padding: .65rem 1rem;

  font-weight: 600;

  background: var(--accent);

  color: #04111a;

  border-color: transparent;
}

/* =========================
   BURGER MENU
========================= */

.portal-auth .burger-menu {
  display: none;
  position: relative;
}

.portal-auth .burger-icon {
  cursor: pointer;

  font-size: 1.1rem;

  color: var(--sub);

  border: 1px solid var(--border);

  border-radius: 8px;

  padding: .35rem .55rem;

  background: transparent;
}

.portal-auth .menu-items {
  display: none;

  position: absolute;

  right: 0;

  top: calc(100% + .4rem);

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 10px;

  padding: .4rem;

  min-width: 160px;

  backdrop-filter: blur(10px);
}

.portal-auth .menu-items button {
  width: 100%;

  background: transparent;

  border: none;

  color: var(--sub);

  text-align: left;

  padding: .6rem .75rem;

  border-radius: 8px;

  cursor: pointer;

  font-family: inherit;
}

.portal-auth .menu-items button:hover {
  background: var(--surface-2);

  color: var(--text);
}

/* =========================
   AUTH CONTAINER
========================= */

.portal-auth .container {
  width: min(480px, calc(100% - 2rem));

  margin: 140px auto 2rem;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.02),
      rgba(255,255,255,.01)
    );

  border: 1px solid var(--border);

  border-radius: 24px;

  padding: 32px;

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(12px);
}

.portal-auth .container h2 {
  margin: 0 0 .8rem;

  font-size: 1.6rem;

  color: var(--text);
}

.portal-auth .container p {
  color: var(--sub);
}

.portal-auth .container a {
  color: var(--accent);

  text-decoration: none;
}

.portal-auth .container a:hover {
  text-decoration: underline;
}

/* =========================
   INPUTS
========================= */

.portal-auth .container input,
.portal-auth .container select {
  width: 100%;

  background: #0e1528;

  border: 1px solid var(--border);

  color: var(--text);

  padding: 13px 14px;

  border-radius: 12px;

  margin-top: .6rem;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.portal-auth .container input::placeholder {
  color: #77849a;
}

.portal-auth .container input:focus,
.portal-auth .container select:focus {
  outline: none;

  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(36, 209, 255, 0.12);
}

/* =========================
   BUTTONS
========================= */

.portal-auth .container button {
  width: 100%;

  border: none;

  background: var(--accent);

  color: #03111f;

  font-weight: 700;

  padding: 14px;

  border-radius: 12px;

  margin-top: 1rem;

  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.portal-auth .container button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 10px 30px rgba(36, 209, 255, 0.18);
}

/* =========================
   UTILITIES
========================= */

.portal-auth .hidden {
  display: none !important;
}

.portal-auth .error-message {
  color: #ff6b81;

  font-size: .82rem;

  min-height: 1rem;

  display: block;

  margin-top: .25rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 820px) {

  .portal-auth .top-menu {
    display: none;
  }

  .portal-auth .topbar-cta {
    display: none;
  }

  .portal-auth .burger-menu {
    display: block;
  }

  .portal-auth .container {
    margin-top: 110px;
    padding: 24px;
  }
}

@media (max-width: 700px) {

  .portal-auth .top-frame {
    height: auto;

    gap: .6rem;

    flex-wrap: wrap;

    padding: .7rem 1rem;
  }

  .portal-auth .container {
    margin-top: 120px;
  }
}
