:root {
  color: #20262d;
  background: #eef2f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  background: #eef2f4;
}

.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.login-panel {
  width: min(100%, 390px);
  padding: 30px;
  background: #ffffff;
  border: 1px solid #cfd7dc;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(32, 38, 45, 0.12);
}

header {
  margin-bottom: 22px;
}

.product-kicker {
  margin: 0 0 7px;
  color: #0b6b68;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0;
  color: #172027;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.subtitle {
  margin: 7px 0 0;
  color: #63717b;
  font-size: 13px;
  line-height: 1.5;
}

.field {
  margin-bottom: 17px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid #cfd7dc;
  border-radius: 6px;
  background: #eef2f4;
}

.auth-tab {
  min-height: 38px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #52616b;
  font-size: 14px;
  font-weight: 600;
}

.auth-tab:hover {
  background: #e1e7ea;
}

.auth-tab.active {
  background: #ffffff;
  color: #0b6b68;
  box-shadow: 0 1px 3px rgba(32, 38, 45, 0.14);
}

.auth-form[hidden] {
  display: none;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #37434c;
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aebac2;
  border-radius: 6px;
  background: #ffffff;
  color: #172027;
  font: inherit;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #0b6b68;
  box-shadow: 0 0 0 3px rgba(11, 107, 104, 0.16);
}

button {
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
  border: 1px solid #075b58;
  border-radius: 6px;
  background: #0b6b68;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid rgba(11, 107, 104, 0.24);
  outline-offset: 2px;
}

button:disabled {
  border-color: #809096;
  background: #809096;
  cursor: wait;
}

button.auth-tab {
  min-height: 38px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #52616b;
  font-size: 14px;
  font-weight: 600;
}

button.auth-tab:hover {
  background: #e1e7ea;
}

button.auth-tab.active {
  background: #ffffff;
  color: #0b6b68;
}

.message {
  min-height: 22px;
  margin: 11px 0 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

footer {
  padding-top: 18px;
  border-top: 1px solid #e1e6e9;
  color: #6c7881;
  font-size: 12px;
  text-align: center;
}

footer span,
footer a {
  display: block;
}

footer a {
  margin-top: 8px;
  color: #52616b;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: #0b6b68;
  text-decoration: underline;
}

.noscript {
  color: #b42318;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 430px) {
  .login-shell {
    place-items: start center;
    padding-top: max(44px, env(safe-area-inset-top));
  }

  .login-panel {
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(32, 38, 45, 0.1);
  }
}
