:root {
  color-scheme: light;
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
  color: #0b3033;
  background: #eef6f4;
}

* { box-sizing: border-box; }

.auth-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(47, 211, 196, .22), transparent 30%),
    linear-gradient(145deg, #e7f2ef, #f8f7f2 56%, #edf6f4);
}

.auth-card {
  width: min(100%, 520px);
  padding: 40px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #bad6d1;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(7, 56, 58, .16);
}

.auth-card-wide { width: min(100%, 1120px); }
.auth-brand { display: flex; gap: 7px; align-items: center; color: #006b68; font-size: 31px; }
.auth-brand span { color: #00a99d; font-size: 16px; }
.auth-eyebrow { margin: 28px 0 8px; color: #008b82; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.auth-card h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
.auth-subtitle { margin: 13px 0 26px; color: #537072; font-size: 16px; line-height: 1.5; }
.auth-form { display: grid; gap: 17px; }
.auth-form h2, .auth-user-list h2 { margin: 0 0 3px; font-size: 21px; }
.auth-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.auth-form input, .auth-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aac9c5;
  border-radius: 9px;
  color: #0b3033;
  background: #fbfdfc;
  font: inherit;
  font-weight: 500;
}
.auth-form input:focus, .auth-form select:focus { outline: 3px solid rgba(0, 169, 157, .18); border-color: #008f87; }
.auth-form button {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: #008f87;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.auth-form button:hover { background: #006f6a; }
.auth-form-links { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.auth-form-links a, .auth-primary-link { color: #007a74; font-weight: 750; }
.auth-primary-link { display: inline-block; padding: 12px 16px; border: 1px solid #008f87; border-radius: 9px; text-decoration: none; }
.auth-checkbox { grid-template-columns: 18px 1fr; align-items: start; font-weight: 500 !important; line-height: 1.45; }
.auth-checkbox input { min-height: 0; margin: 3px 0 0; }
.auth-note { margin: -5px 0 0; color: #617879; font-size: 12px; line-height: 1.4; }
.auth-alert { padding: 12px 14px; border-radius: 9px; font-size: 13px; }
.auth-error { background: #fff0ed; border-left: 4px solid #b84635; color: #7a2c21; }
.auth-success { background: #e5f8f1; border-left: 4px solid #118466; color: #075f49; }
.auth-account-grid { display: grid; grid-template-columns: minmax(250px, .36fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.auth-account-form { padding: 20px; background: #f1f8f6; border: 1px solid #c5dcd8; border-radius: 14px; }
.auth-list-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 12px; }
.auth-list-heading a { color: #007a74; font-size: 13px; font-weight: 750; }
.auth-table-scroll { overflow-x: auto; border: 1px solid #c5dcd8; border-radius: 12px; }
.auth-user-list table { width: 100%; border-collapse: collapse; font-size: 12px; background: white; }
.auth-user-list th, .auth-user-list td { padding: 12px; border-bottom: 1px solid #dce9e6; text-align: left; white-space: nowrap; }
.auth-user-list th { color: #486768; background: #eff7f5; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }

.pappy-user-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8e5e2;
  font-size: 11px;
}
.pappy-user-email { overflow: hidden; color: #183f42; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.pappy-user-actions { display: flex; flex-wrap: wrap; gap: 9px; color: #5c7476; }
.pappy-user-actions a { color: #007b75; font-weight: 700; text-decoration: none; }
.pappy-user-actions a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .auth-card { padding: 28px 22px; border-radius: 18px; }
  .auth-account-grid { grid-template-columns: 1fr; }
}
