.page-auth {
  min-height: 100vh;
  background: #fff;
}

.page-auth .masthead {
  background: rgba(255, 255, 255, .9);
}

.auth-main {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 5vw, 72px) 0 64px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 26, .15);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(34, 16, 18, .12);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 690px;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #0c0d10;
  color: #fff;
}

.auth-story::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('../img/hero-live-energy-v2.webp') center / cover no-repeat;
  content: '';
  filter: saturate(.84) contrast(1.03);
  transform: scale(1.015);
}

.auth-story::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, .2), rgba(5, 6, 8, .92) 82%),
    linear-gradient(112deg, rgba(211, 47, 47, .32), transparent 46%);
  content: '';
}

.auth-story__top {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(9, 10, 13, .46);
  color: rgba(255, 255, 255, .84);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.auth-chip--live::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff4f54;
  box-shadow: 0 0 0 6px rgba(255, 79, 84, .12);
  content: '';
}

.auth-story__copy {
  width: 100%;
  padding: clamp(32px, 5vw, 58px);
}

.auth-story__copy .eyebrow { color: #ff7b7f; }

.auth-story__copy h1 {
  max-width: 640px;
  margin: 18px 0 22px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .87;
  text-transform: uppercase;
}

.auth-story__copy p:last-child {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-panel {
  display: flex;
  align-items: center;
  padding: clamp(34px, 5vw, 76px);
  background:
    radial-gradient(circle at 95% 7%, rgba(211, 47, 47, .11), transparent 29%),
    #fff;
}

.auth-card {
  width: min(100%, 540px);
  margin: auto;
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: #b3261e;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-kicker::before {
  width: 24px;
  height: 1px;
  background: #d32f2f;
  content: '';
}

.auth-card h2 {
  margin: 0;
  color: #14161a;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.8rem);
  letter-spacing: -.035em;
  line-height: .92;
  text-transform: uppercase;
}

.auth-card__lede {
  max-width: 44ch;
  margin: 20px 0 32px;
  color: #626873;
  line-height: 1.6;
}

.auth-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 28px;
  padding: 5px;
  border: 1px solid #d9dce2;
  border-radius: 14px;
  background: #f4f5f7;
}

.auth-role button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #60656f;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
}

.auth-role button[aria-pressed="true"] {
  background: #111318;
  color: #fff;
  box-shadow: 0 6px 18px rgba(17, 19, 24, .14);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: #252830;
  font-size: .78rem;
  font-weight: 800;
}

.auth-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-field__head a {
  color: #b3261e;
  font-size: .74rem;
  font-weight: 750;
}

.auth-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d5d8df;
  border-radius: 11px;
  outline: 0;
  background: rgba(255, 255, 255, .94);
  color: #14161a;
  font: inherit;
  font-size: .96rem;
  font-weight: 500;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-field input:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, .1);
}

.auth-field input::placeholder { color: #9a9ea6; }

.auth-password {
  position: relative;
}

.auth-password input { padding-right: 74px; }

.auth-password button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #6a6f78;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
}

.auth-trust {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 2px 0 0;
  color: #767b84;
  font-size: .76rem;
  line-height: 1.5;
}

.auth-trust svg {
  width: 16px;
  min-width: 16px;
  margin-top: 1px;
  fill: none;
  stroke: #b3261e;
  stroke-width: 1.7;
}

.auth-status {
  padding: 15px 16px;
  border: 1px solid #e2c5c1;
  border-radius: 11px;
  background: #fff7f5;
  color: #373a42;
  font-size: .83rem;
  line-height: 1.5;
}

.auth-status a {
  color: #a9221c;
  font-weight: 850;
}

.page-auth [hidden] { display: none !important; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
#account-email { overflow-wrap: anywhere; }

.auth-switch {
  margin: 26px 0 0;
  color: #646973;
  font-size: .86rem;
  text-align: center;
}

.auth-switch a {
  color: #b3261e;
  font-weight: 850;
}

.auth-footer {
  padding: 0 0 44px;
  color: #747983;
  font-size: .76rem;
}

.auth-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.auth-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.auth-footer a { color: inherit; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 410px; }
  .auth-story__copy h1 { max-width: 720px; font-size: clamp(3.5rem, 10vw, 6.2rem); }
  .auth-panel { padding-block: 58px; }
}

@media (max-width: 620px) {
  .auth-main { padding-top: 16px; }
  .auth-shell { border-radius: 19px; }
  .auth-story { min-height: 350px; }
  .auth-story__copy { padding: 28px 24px; }
  .auth-story__copy h1 { font-size: clamp(3.1rem, 17vw, 4.8rem); }
  .auth-panel { padding: 38px 24px 42px; }
  .auth-card h2 { font-size: 3.2rem; }
  .auth-form__row { grid-template-columns: 1fr; }
  .auth-role { grid-template-columns: 1fr; }
  .auth-footer .shell { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-field input,
  .auth-role button { transition: none; }
}
