:root {
  color-scheme: light;
  --primary: #006a60;
  --on-primary: #ffffff;
  --primary-soft: #d9f5ef;
  --surface: #f7fbf8;
  --card: #ffffff;
  --text: #191c1b;
  --muted: #59615f;
  --outline: #bec9c5;
  --error: #ba1a1a;
  --shadow: 0 18px 60px rgba(0, 32, 28, .16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(156, 242, 228, .52), transparent 34%),
    linear-gradient(240deg, rgba(208, 228, 255, .66), transparent 40%),
    var(--surface);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 24px;
  align-items: stretch;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.brand-panel,
.auth-panel {
  border: 1px solid rgba(111, 121, 118, .18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.brand-panel {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 28, 42, .08), rgba(8, 28, 42, .42)),
    url("/assets/auth-mountain.png") center/cover;
  color: #ffffff;
}

.brand-panel img {
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.brand-panel h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
}

.brand-panel p {
  max-width: 560px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: 28px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.view {
  display: grid;
  gap: 14px;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-name {
  width: fit-content;
  justify-self: center;
  margin: 0 0 2px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #006a60, #2e5aac);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 106, 96, .22);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  color: rgba(255, 255, 255, .82);
}

.slogan-pill {
  width: fit-content;
  margin: 10px 0 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #ffffff;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.form,
.stack {
  display: grid;
  gap: 12px;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: #ffffff;
}

.account-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.account-main strong,
.account-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-main small {
  color: var(--muted);
}

.account-photo,
.account-photo img,
.account-photo span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.account-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--primary-soft);
  color: #003c36;
  font-weight: 800;
}

.account-photo img {
  display: block;
  object-fit: cover;
}

.account-photo span {
  display: grid;
  place-items: center;
  line-height: 1;
}

.remove-account {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.remove-account:hover {
  background: #fff3f1;
  color: var(--error);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: 0;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 106, 96, .14);
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
  min-width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.password-policy {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 106, 96, .22);
  border-radius: 12px;
  background: #f2fbf8;
}

.password-policy-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #003c36;
  font-size: 13px;
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #d9f5ef;
  color: #003c36;
  font-size: 12px;
  font-weight: 800;
}

.password-criteria {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.password-criteria li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.criterion-mark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: #ffffff;
}

.password-criteria li.met {
  color: #006a60;
  font-weight: 800;
}

.password-criteria li.met .criterion-mark {
  display: grid;
  place-items: center;
  border-color: #006a60;
  background: #006a60;
}

.password-criteria li.met .criterion-mark::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.primary-button,
.secondary-button,
.google-button,
.text-button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
}

.primary-button {
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 3px 10px rgba(0, 106, 96, .22);
}

.secondary-button {
  border: 0;
  background: var(--primary-soft);
  color: #003c36;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--outline);
  background: #ffffff;
  color: var(--text);
}

.google-button .google-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

button:disabled {
  opacity: .68;
  cursor: default;
}

.separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--outline);
}

.message {
  min-height: 20px;
  margin: 0;
  color: var(--primary);
  font-size: 13px;
}

.message.error {
  color: var(--error);
}

.muted.error {
  color: var(--error);
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 860px) {
  .auth-page {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 520px);
    padding: 12px 0;
  }

  .brand-panel {
    min-height: 280px;
  }

  .brand-panel h1 {
    font-size: 38px;
  }
}
