:root {
  --bg: #d9eaff;
  --bg-deep: #a8ccec;
  --surface: #f5faff;
  --surface-soft: #e7f3ff;
  --ink: #0d1f33;
  --muted: #405a76;
  --line: #9fc4e8;
  --line-strong: #5f98cf;
  --accent: #256ea8;
  --accent-dark: #0f4775;
  --success: #226447;
  --success-soft: #e6f4ed;
  --error: #943d37;
  --error-soft: #fff0ee;
  --focus: #1d4ed8;
  --shadow: 0 24px 70px rgba(13, 56, 96, 0.16);
  --shadow-soft: 0 14px 34px rgba(13, 56, 96, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.25), transparent 26rem),
    radial-gradient(circle at 86% 0%, rgba(37, 110, 168, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 71, 117, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 71, 117, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

a {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 30;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  border-bottom: 1px solid rgba(95, 152, 207, 0.65);
  background: rgba(220, 236, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 620px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 84px;
  margin-right: 16px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.25;
}

.brand small {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-actions a {
  font-weight: 700;
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(245, 250, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.8fr);
  align-items: center;
  width: min(1160px, calc(100% - 36px));
  min-height: calc(100vh - 192px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 0;
  gap: clamp(32px, 6vw, 80px);
}

.welcome-panel {
  max-width: 670px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: #3b82f6;
  content: "";
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

p {
  margin-top: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
}

.trust-card {
  margin-bottom: 24px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(245, 250, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.trust-card h2 {
  font-size: 1.32rem;
}

.trust-card p,
.boundary-list {
  color: var(--muted);
}

.trust-card p {
  margin-bottom: 0;
}

.boundary-list {
  display: grid;
  margin: 0;
  padding-left: 1.3rem;
  gap: 9px;
}

.signin-card {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(95, 152, 207, 0.75);
  border-radius: 30px;
  background: rgba(245, 250, 255, 0.94);
  box-shadow: var(--shadow);
}

.card-heading > p:last-child {
  color: var(--muted);
}

.status-box {
  margin: 22px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.96rem;
}

.status-neutral {
  color: var(--muted);
  background: var(--surface-soft);
}

.status-success {
  border-color: #7db89d;
  color: var(--success);
  background: var(--success-soft);
}

.status-error {
  border-color: #d5a09b;
  color: var(--error);
  background: var(--error-soft);
}

.field-group {
  display: grid;
  margin-bottom: 20px;
  gap: 8px;
}

.field-group label {
  font-weight: 800;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:disabled {
  cursor: wait;
  opacity: 0.72;
}

button {
  font: inherit;
}

.text-button {
  padding: 3px 0;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  border: 1px solid var(--accent-dark);
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 24px rgba(15, 71, 117, 0.22);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.signed-in-actions {
  padding: 20px;
  border: 1px solid #7db89d;
  border-radius: 18px;
  background: var(--success-soft);
}

.signed-in-actions p {
  color: #245b43;
}

.support-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 42px 0 58px;
  }

  .welcome-panel {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .header-inner {
    align-items: flex-start;
  }

  .brand img {
    width: 48px;
    height: 64px;
    margin-right: 10px;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .environment-badge {
    padding: 5px 9px;
    font-size: 0.65rem;
  }

  .signin-card {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .trust-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
