:root {
  --navy-950: #041a35;
  --navy-900: #05264a;
  --navy-700: #12436f;
  --gold: #f2c300;
  --green: #159a6a;
  --ink: #202938;
  --muted: #667085;
  --line: #e8edf5;
  --soft: #fbfcfe;
  --white: #ffffff;
  --radius: 8px;
  font-family: Aptos, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(20, 184, 255, 0.16), transparent 32%),
    radial-gradient(circle at 84% 10%, rgba(135, 72, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #050816 0%, #071327 56%, #081629 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.2), rgba(5, 8, 22, 0.06) 42%, rgba(5, 8, 22, 0.3)),
    linear-gradient(180deg, rgba(5, 8, 22, 0.08), rgba(5, 8, 22, 0.48));
}

.web3-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 500px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 78px);
  min-height: 100vh;
  padding: clamp(20px, 5vw, 58px);
}

.brand-panel {
  display: grid;
  gap: 22px;
}

.brand-logo {
  display: block;
  width: min(500px, 82vw);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.34));
}

.brand-copy span {
  display: inline-block;
  color: var(--gold);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 560;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy h1 {
  max-width: 15ch;
  margin: 12px 0 14px;
  color: #ffffff;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 540;
  line-height: 1.12;
  text-shadow: 0 14px 34px rgba(5, 8, 22, 0.38);
}

.brand-copy p {
  max-width: 42ch;
  margin: 0;
  color: rgba(235, 242, 255, 0.78);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}

.access-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(6, 35, 68, 0.07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(6, 35, 68, 0.06);
}

.access-heading {
  margin-bottom: 22px;
}

.access-heading p,
.access-heading h2 {
  margin: 0;
}

.access-heading p,
.access-heading span,
.trust-box span {
  color: var(--muted);
}

.access-heading h2 {
  margin-top: 6px;
  color: var(--navy-950);
  font-size: 30px;
  font-weight: 560;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: rgba(16, 63, 117, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 63, 117, 0.08);
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.biometric-button,
.primary-button,
.support-links button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 520;
}

.biometric-button {
  border: 1px solid rgba(6, 35, 68, 0.08);
  background: var(--soft);
  color: var(--navy-900);
}

.trust-box {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(24, 166, 106, 0.16);
  border-radius: var(--radius);
  background: rgba(24, 166, 106, 0.08);
}

.trust-box strong {
  color: var(--navy-950);
  font-weight: 560;
}

.primary-button {
  width: 100%;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 560;
}

.support-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.support-links button {
  background: transparent;
  color: var(--navy-700);
}

.admin-link {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  text-align: center;
  text-decoration: none;
}

.admin-link:focus,
.admin-link:hover {
  color: var(--navy-700);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--navy-950);
  color: #ffffff;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 840px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
  }

  .brand-copy,
  .brand-logo {
    margin-inline: auto;
    text-align: center;
  }

  .brand-logo {
    width: min(340px, 72vw);
    max-height: 220px;
  }

  .access-card {
    width: min(100%, 520px);
  }
}

@media (max-width: 520px) {
  .login-shell {
    gap: 18px;
    min-height: 100svh;
    padding: 24px 18px;
  }

  .brand-panel {
    justify-items: center;
    gap: 12px;
    width: 100%;
  }

  .brand-logo {
    width: min(238px, 68vw);
    max-height: 150px;
  }

  .brand-copy h1 {
    max-width: 13ch;
    margin: 10px auto 12px;
    font-size: 29px;
  }

  .brand-copy p {
    max-width: 30ch;
    margin-inline: auto;
    font-size: 16px;
  }

  .access-card {
    width: 100%;
    padding: 24px 22px;
  }

  .auth-row,
  .support-links {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.brand-copy h1,
.access-heading h2,
.trust-box strong {
  font-weight: 540;
  letter-spacing: 0;
}

.brand-copy span,
label,
.biometric-button,
.primary-button,
.support-links button,
.admin-link {
  font-weight: 520;
}

.access-card {
  background: rgba(255, 255, 255, 0.94);
}
