/* Auth / Login page — Figma split layout */
.auth-page {
  min-height: 100vh;
  display: grid;
  background: #f4f7f9;
}
.auth-brand {
  display: none;
  position: relative;
  background: #002b5b;
  color: #fff;
  padding: 2.5rem;
  overflow: hidden;
}
.auth-brand-photo {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  object-fit: cover;
  width: 100%;
  opacity: 0.45;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,86,210,0.35), transparent 45%),
    linear-gradient(180deg, transparent 45%, rgba(0,43,91,0.85) 100%);
  pointer-events: none;
}
.auth-brand-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}
.auth-brand-top img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: #fff;
  padding: 0.2rem;
}
.auth-brand-mid {
  text-align: left;
  padding: 2rem 0 4rem;
  max-width: 22rem;
}
.auth-brand-mid h2 {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.auth-brand-mid .auth-portal-label {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0;
  text-transform: none;
}
.auth-brand-mid .auth-portal-label::before,
.auth-brand-mid .auth-portal-label::after {
  display: none;
}
.auth-brand-seal { display: none !important; }
.auth-quote {
  margin: 1.5rem 0 0;
  max-width: 22rem;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  transition: opacity 0.35s ease;
}
.auth-quote.is-fading { opacity: 0; }
.auth-quote-text { margin: 0; }
.auth-quote-cite,
.auth-quote cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2eb6ff;
}
.auth-brand-foot {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #fff;
}
.auth-panel-inner {
  width: 100%;
  max-width: 26rem;
}
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.auth-mobile-brand img { width: 2.75rem; height: 2.75rem; }
.auth-welcome-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(0,86,210,0.1);
  color: #0056d2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.auth-welcome-icon svg { width: 1.35rem; height: 1.35rem; }
.auth-panel h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: #002b5b;
}
.auth-panel .auth-sub {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: #5b6472;
}
.auth-card {
  margin-top: 1.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.auth-alert {
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  padding: 0.8rem 0.95rem;
  font-size: 0.88rem;
}
.auth-alert-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.auth-alert-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.auth-field { margin-bottom: 1rem; }
.auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #002b5b;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap svg.auth-leading {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #5b6472;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.85rem 0.9rem 0.85rem 2.5rem;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}
.auth-input:focus {
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0,86,210,0.18);
}
.auth-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #5b6472;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
}
.auth-toggle svg { width: 1.05rem; height: 1.05rem; }
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 1rem;
}
.auth-forgot {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0056d2;
  text-decoration: none;
}
.auth-forgot:hover { color: #002b5b; }
.auth-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #5b6472;
}
.auth-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.8rem;
  background: #0056d2;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.95rem 1rem;
  cursor: pointer;
}
.auth-submit:hover { background: #002b5b; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: #5b6472;
  font-size: 0.8rem;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d9e2ec;
}
.auth-signup {
  text-align: center;
  font-size: 0.9rem;
  color: #5b6472;
}
.auth-signup a {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 700;
  color: #0056d2;
  text-decoration: none;
}
.auth-signup a:hover { color: #002b5b; }

@media (min-width: 1024px) {
  .auth-page { grid-template-columns: 1fr 1fr; }
  .auth-brand { display: block; }
  .auth-mobile-brand { display: none; }
  .auth-panel { padding: 3rem; }
}

/* Signup page (Figma split) */
.auth-brand-top span {
  line-height: 1.25;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-brand-mid--signup {
  text-align: left;
  padding: 2.5rem 0 5rem;
  max-width: 24rem;
}
.auth-brand-mid--signup h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -0.02em;
}
.auth-brand-mid--signup .auth-portal-label {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.auth-panel-inner--signup {
  max-width: 32rem;
}
.auth-panel-inner--signup h1 {
  font-size: 1.75rem;
}
.auth-signup-steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  align-items: center;
}
.auth-signup-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}
.auth-signup-steps li span {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1.5px solid #d9e2ec;
  background: #fff;
  color: #94a3b8;
}
.auth-signup-steps li.is-active {
  color: #0056d2;
}
.auth-signup-steps li.is-active span {
  background: #0056d2;
  border-color: #0056d2;
  color: #fff;
}
.auth-signup-grid {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 640px) {
  .auth-signup-grid { grid-template-columns: 1fr 1fr; }
}
.auth-field--span { grid-column: 1 / -1; }
.auth-input--plain {
  padding-left: 0.95rem !important;
}
.auth-page--signup .auth-brand-inner {
  padding-top: 0.5rem;
}
.auth-page--signup .auth-brand {
  padding: 2.75rem;
}
.auth-page--signup .auth-panel {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}
