:root {
  --ink: #f6f8fb;
  --muted: #c9d4e4;
  --navy: #06192d;
  --navy-soft: rgba(7, 25, 45, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --gold: #dfb642;
  --rose: #c83468;
  --rose-dark: #a72050;
  --white: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.portal-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 680px) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  overflow: hidden;
  padding: clamp(34px, 5.4vw, 82px);
}

.portal-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 13, 24, 0.98) 0%, rgba(4, 14, 25, 0.92) 34%, rgba(5, 18, 32, 0.48) 68%, rgba(5, 18, 32, 0.24) 100%),
    url("./assets/client-service-background-danielle-v4.jpg") center / cover no-repeat;
  transform: scale(1.01);
}

.portal-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 28%, rgba(223, 182, 66, 0.1), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.1) 44%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.access-card,
.service-note {
  position: relative;
  z-index: 1;
}

.access-card {
  max-width: 680px;
}

.access-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5d772;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.35px;
  padding: 0 12px;
}

.headline {
  margin-top: 0;
}

.headline p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.headline h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 5.7vw, 86px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.headline span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
}

.key-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--navy-soft);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  padding: clamp(22px, 3vw, 32px);
  backdrop-filter: blur(14px);
}

.key-form label {
  display: grid;
  gap: 7px;
}

.key-form label span {
  color: #f7e9b1;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.key-form label small,
.privacy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.key-row input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #08192d;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2px;
  outline: none;
  padding: 0 18px;
}

.key-row input:focus {
  border-color: rgba(223, 182, 66, 0.9);
  box-shadow: 0 0 0 4px rgba(223, 182, 66, 0.18);
}

.key-row button {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--rose);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  padding: 0 26px;
}

.key-row button:hover {
  background: var(--rose-dark);
}

.privacy-note {
  margin: 0;
}

.success-panel {
  margin-top: 18px;
  border: 1px solid rgba(223, 182, 66, 0.42);
  border-radius: 8px;
  background: rgba(10, 30, 52, 0.84);
  padding: 20px;
}

.internal-mode .success-panel {
  margin-top: 34px;
  max-width: 560px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(6, 22, 40, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.success-panel > span {
  color: #7ee0a4;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.success-panel strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

.success-panel p {
  margin: 7px 0 15px;
  color: var(--muted);
}

.success-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.success-panel a {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  padding: 11px 13px;
  text-decoration: none;
}

.service-note {
  max-width: 360px;
  align-self: end;
  justify-self: end;
  margin-bottom: 4vh;
  border-left: 2px solid rgba(223, 182, 66, 0.78);
  background: rgba(5, 18, 32, 0.42);
  padding: 18px 0 18px 20px;
}

.service-note span {
  color: #f7e9b1;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.service-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .portal-shell {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 28px;
  }

  .portal-shell::before {
    background:
      linear-gradient(180deg, rgba(3, 13, 24, 0.82) 0%, rgba(5, 18, 32, 0.74) 45%, rgba(5, 18, 32, 0.96) 100%),
      url("./assets/client-service-background-danielle-v4.jpg") 62% center / cover no-repeat;
  }

  .service-note {
    justify-self: start;
    margin-bottom: 0;
  }

  .key-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .headline h1 {
    font-size: 52px;
  }

  .access-badge {
    align-items: flex-start;
    border-radius: 8px;
    padding-block: 10px;
  }
}
