:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-deep: #ebe4d8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(58, 47, 37, 0.12);
  --text: #231d18;
  --muted: #6e655c;
  --accent: #114b5f;
  --accent-strong: #0c3441;
  --accent-soft: #dceef3;
  --success: #1f6b45;
  --shadow: 0 20px 60px rgba(36, 28, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(17, 75, 95, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 107, 69, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
  display: grid;
  gap: 20px;
}

.shell.narrow {
  width: min(760px, calc(100% - 32px));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px;
}

.hero h1,
.profile-page h1 {
  margin: 6px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}

.eyebrow,
.result-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

.auth-row,
.stack,
.form {
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid rgba(58, 47, 37, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(17, 75, 95, 0.24);
  border-color: rgba(17, 75, 95, 0.42);
}

.button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 28px rgba(17, 75, 95, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(58, 47, 37, 0.14);
}

.status,
.muted,
.hint {
  color: var(--muted);
  line-height: 1.5;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(220, 238, 243, 0.75);
  border: 1px solid rgba(17, 75, 95, 0.14);
}

.result a {
  word-break: break-all;
}

.profile-card {
  display: grid;
  gap: 10px;
}

.reference-item {
  padding: 18px 0;
  border-top: 1px solid rgba(58, 47, 37, 0.12);
}

.reference-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.reference-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.reference-position {
  margin: 6px 0 0;
  color: var(--muted);
}

.reference-confirmation {
  margin: 8px 0 0;
  color: var(--success);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .shell {
    padding-top: 20px;
  }

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

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