@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&display=swap');

:root {
  --ink: #16302b;
  --muted: #5f706c;
  --paper: #ffffff;
  --canvas: #f4f8f6;
  --line: #d8e4df;
  --brand: #087f6b;
  --brand-dark: #056251;
  --accent: #d4513c;
  --success: #147a4c;
  --error: #b9382a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  font-family: 'Heebo', sans-serif;
  background:
    linear-gradient(90deg, transparent 49px, rgba(8, 127, 107, .06) 50px, transparent 51px),
    linear-gradient(var(--canvas), #edf4f1);
  background-size: 100px 100%, 100% 100%;
}

.auth-shell { width: min(100%, 430px); }

.brand {
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.auth-panel {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(22, 48, 43, .09);
}

h1 { margin: 0; font-size: 1.65rem; letter-spacing: 0; }
.lead { margin: 6px 0 24px; color: var(--muted); }

form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }

input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b9cac4;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(8, 127, 107, .16);
  border-color: var(--brand);
}

.checks { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; }
.check input { width: 18px; min-height: 18px; accent-color: var(--brand); }

button {
  min-height: 44px;
  border: 0;
  border-radius: 5px;
  padding: 10px 16px;
  color: #fff;
  background: var(--brand);
  font: 600 1rem 'Heebo', sans-serif;
  cursor: pointer;
}

button:hover { background: var(--brand-dark); }
button:disabled { cursor: wait; opacity: .65; }
button[data-loading='true']::after { content: '...'; }

.links { margin: 20px 0 0; display: flex; justify-content: space-between; gap: 16px; }
a { color: var(--brand-dark); font-weight: 600; }

[data-status] { min-height: 24px; margin: 0; font-size: .92rem; }
[data-status][data-type='success'] { color: var(--success); }
[data-status][data-type='error'] { color: var(--error); }

.account-list { margin: 24px 0; display: grid; gap: 0; }
.account-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-row dt { color: var(--muted); font-size: .85rem; }
.account-row dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.actions { display: grid; gap: 10px; }
.button-link {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 5px;
  text-decoration: none;
}
.test-data { min-height: 120px; resize: vertical; }

@media (max-width: 480px) {
  body { padding: 16px; place-items: start center; }
  .auth-panel { padding: 24px 20px; }
  .links { flex-direction: column; }
}