:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #24314a;
  background: #f3f6fb;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 40px 16px;
}
.card {
  width: min(100%, 480px);
  margin: 8vh auto;
  background: white;
  border: 1px solid #d9e1ee;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 30px #182b4710;
}
.brand {
  font-size: 14px;
  color: #667891;
  margin: 0;
}
h1 {
  font-size: 28px;
  color: #14233e;
  margin: 12px 0;
}
p {
  color: #52627a;
}
form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
label {
  font-size: 14px;
  font-weight: 600;
}
input,
button {
  font: inherit;
  border-radius: 6px;
  padding: 11px 13px;
}
input {
  border: 1px solid #acbbcf;
}
button {
  border: 0;
  background: #245ad5;
  color: white;
  cursor: pointer;
  margin-top: 10px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background: #1749b8;
}
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #91b2ff;
  outline-offset: 3px;
}
.note {
  font-size: 13px;
}
#message {
  min-height: 24px;
}
a {
  color: #245ad5;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 500px) {
  body {
    padding: 20px 12px;
  }
  .card {
    margin: 4vh auto;
    padding: 24px;
  }
}
/* Keep the account screen's base styles; apply the compact layout to authentication only. */
.auth-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at top, #eaf0ff 0, #f5f7fc 65%);
  padding: 32px 20px;
}
.auth-card {
  width: min(100%, 420px);
  margin: 0;
  padding: 36px;
  border: 1px solid #e1e7f0;
  border-radius: 20px;
  box-shadow: 0 16px 48px #14233e0b;
}
.auth-card .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #26344c;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 28px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #245ad5;
  color: white;
  font-size: 19px;
  font-weight: 700;
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 27px;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.auth-card .subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #66738a;
}
.auth-card form {
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.auth-card label {
  font-size: 13px;
}
.auth-card input:not([type='checkbox']) {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c7d1e0;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 15px;
  background: #fff;
  color: #24314a;
}
.auth-card input::placeholder {
  color: #78859a;
}
.auth-card input:focus-visible {
  border-color: #245ad5;
  outline: 3px solid #245ad51a;
  outline-offset: 1px;
}
.auth-card button {
  margin: 0;
  min-height: 46px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}
.password-field {
  position: relative;
}
.auth-card .password-field input {
  padding-right: 66px;
}
.auth-card .password-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  min-height: 36px;
  padding: 0 9px;
  background: transparent;
  color: #34568f;
  font-size: 12px;
}
.auth-card .password-toggle:hover {
  background: #eef3fc;
}
.auth-card #message:empty {
  display: none;
}
.auth-card .form-message {
  margin: 0;
  min-height: 0;
  color: #aa3030;
  font-size: 13px;
}
.identity {
  font-size: 13px;
  color: #66738a;
  overflow-wrap: anywhere;
}
.auth-card .user-code {
  background: #f6f8fd !important;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 21px !important;
  font-weight: 600;
  letter-spacing: 1px;
}
.confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: #52627a;
}
.confirmation input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #245ad5;
}
.auth-card .secondary-button {
  min-height: 36px;
  background: transparent;
  color: #66738a;
  font-weight: 400;
}
.auth-card .secondary-button:hover:not(:disabled) {
  background: #f3f6fb;
  color: #24314a;
}
.page-footer {
  margin: 20px 0 0;
  font-size: 12px;
  color: #748098;
}
.primary-link {
  display: block;
  padding: 12px 16px;
  margin-top: 24px;
  border-radius: 9px;
  background: #245ad5;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.primary-link:hover {
  background: #1749b8;
}
@media (max-width: 500px) {
  .auth-page {
    padding: 24px 16px;
  }
  .auth-card {
    padding: 28px 24px;
    margin: 0;
  }
}
.account-page {
  padding: 32px 16px;
}
.account-card {
  width: min(100%, 560px);
  margin: 24px auto;
}
.account-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}
.account-card #password-form {
  border-top: 1px solid #d9e1ee;
  padding-top: 24px;
  margin-top: 24px;
  gap: 10px;
}
.account-card input {
  width: 100%;
  min-height: 46px;
  color: #24314a;
  background: white;
}
.account-card #password-form p {
  margin: 8px 0;
  font-size: 14px;
}
.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d9e1ee;
}
.account-actions button {
  margin: 0;
  min-height: 44px;
}
.account-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 500px) {
  .account-card {
    margin: 0 auto;
    padding: 24px;
  }
}
