:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f6f9;
  color: #1f2933;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 151, 0.14), transparent 35rem),
    #f2f6f9;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid #d8e2e8;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(23, 63, 95, 0.14);
  overflow: hidden;
}

.auth-card__header {
  padding: 30px 34px 24px;
  text-align: center;
  background: #ffffff;
  color: #173f5f;
  border-bottom: 1px solid #d8e2e8;
}

.auth-logo {
  width: min(300px, 100%);
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.auth-card__header h1 {
  margin: 0;
  font-size: 28px;
}

.auth-card__header p {
  margin: 8px 0 0;
  color: #60717d;
}

.auth-card__body { padding: 30px 34px 34px; }
.auth-intro { margin: 0 0 24px; line-height: 1.5; color: #526270; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 7px; font-weight: 700; }
.auth-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #aebdc7;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}
.auth-field input:focus { outline: 3px solid rgba(34, 123, 160, 0.2); border-color: #227ba0; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #175b7a;
  font-weight: 700;
  cursor: pointer;
}
.auth-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #227ba0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-button:hover { background: #1b6686; }
.auth-button:disabled { opacity: 0.65; cursor: wait; }
.auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d7a1a1;
  background: #fff0f0;
  color: #8f1f1f;
  line-height: 1.4;
}
.auth-help { margin: 20px 0 0; text-align: center; color: #687985; font-size: 14px; }

.auth-alert--success {
  border-color: #8fc7a0;
  background: #eefaf1;
  color: #245f36;
}
.auth-link-row {
  margin: -6px 0 18px;
  text-align: right;
  font-size: 14px;
}
.auth-link-row a,
.auth-help a {
  color: #175b7a;
  font-weight: 700;
}
.auth-field-help {
  margin: 6px 0 0;
  color: #687985;
  font-size: 13px;
}

/* Authentication page branding refinements - 2026-07-28 */
.auth-card { width: min(500px, 100%); }
.auth-card__header { padding: 30px 28px; }
.auth-logo-link { display: inline-block; line-height: 0; border-radius: 8px; }
.auth-logo-link:focus-visible { outline: 3px solid rgba(34, 123, 160, 0.35); outline-offset: 5px; }
.auth-logo { width: min(370px, 100%); margin: 0; }
