:root {
  --ink: #172524;
  --muted: #657371;
  --line: #dfe7e5;
  --teal: #0b6b64;
  --teal-dark: #07534e;
  --teal-soft: #e6f3f1;
  --red: #9d363e;
  --red-soft: #fbecee;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: #eef4f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(11, 107, 100, 0.14), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(242, 185, 91, 0.17), transparent 30%), #eef4f2;
}

button,
input {
  font: inherit;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.auth-card {
  width: min(100%, 470px);
  padding: clamp(27px, 6vw, 42px);
  border: 1px solid rgba(11, 107, 100, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(20, 58, 55, 0.13);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f2b95b;
  color: #173b38;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.auth-heading {
  margin: 27px 0 24px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.security-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31b989;
  box-shadow: 0 0 0 4px rgba(49, 185, 137, 0.13);
}

h1 {
  margin: 13px 0 8px;
  font-size: clamp(27px, 7vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 7px;
  font-size: 16px;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 10px 25px rgba(11, 107, 100, 0.19);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--teal-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.button-help {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
}

.setup-panel,
.session-panel {
  padding: 18px;
  border: 1px solid #c9dedb;
  border-radius: 13px;
  background: #f7fbfa;
}

.setup-panel label {
  display: grid;
  gap: 7px;
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.setup-panel input {
  width: 100%;
  height: 45px;
  border: 1px solid #bfcfcd;
  border-radius: 9px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

.setup-panel input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(11, 107, 100, 0.12);
}

code {
  font-size: 10px;
}

.session-panel {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.session-check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 850;
}

.session-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  margin-top: 7px;
}

.secondary-button {
  min-height: 43px;
  border: 1px solid #b9cecb;
  border-radius: 10px;
  background: white;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
}

.text-button {
  padding: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
}

.auth-message,
.compatibility-message {
  margin: 15px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  line-height: 1.45;
}

.security-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.security-note span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 850;
}

.security-note p {
  font-size: 10px;
}

noscript {
  display: block;
  margin-top: 15px;
  color: var(--red);
  font-size: 11px;
}

[hidden] {
  display: none !important;
}
