.auth-page {
  --auth-navy: #071a33;
  --auth-blue: #164f82;
  --auth-orange: #ff6724;
  --auth-text: #13283f;
  --auth-muted: #64748b;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 22px 28px;
  background:
    radial-gradient(circle at 10% 15%, rgba(39, 86, 255, .08), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255, 103, 36, .08), transparent 25%),
    #f4f7fb;
}

.auth-container {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(440px, 1.22fr);
  overflow: hidden;
  border: 1px solid rgba(7, 26, 51, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(7, 26, 51, .12);
}

.auth-context {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 510px;
  padding: 34px;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  background: linear-gradient(150deg, var(--auth-navy), #0b365d 72%, #124d7c);
}

.auth-context::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 52px solid rgba(255, 103, 36, .12);
  border-radius: 50%;
}

.auth-context-main,
.auth-context-foot {
  position: relative;
  z-index: 1;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.auth-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--auth-orange);
}

.auth-context h1 {
  max-width: 370px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.auth-context-copy {
  max-width: 37ch;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .93rem;
  line-height: 1.65;
}

.auth-benefits {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}

.auth-benefit {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .82rem;
  font-weight: 650;
}

.auth-benefit i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 103, 36, .9);
  font-size: .68rem;
}

.auth-context-foot {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem;
  line-height: 1.5;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 30px 38px;
}

.auth-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.auth-panel-header h2 {
  margin: 0;
  color: var(--auth-text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.auth-panel-header p {
  margin: 5px 0 0;
  color: var(--auth-muted);
  font-size: .82rem;
}

.auth-home-link {
  flex-shrink: 0;
  color: var(--auth-muted);
  font-size: .76rem;
  font-weight: 700;
}

.auth-home-link:hover,
.auth-switch a:hover {
  color: var(--auth-orange);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: #fff7f7;
  color: #991b1b;
  font-size: .76rem;
  line-height: 1.45;
}

.auth-alert i {
  margin-top: 2px;
}

.auth-fields {
  display: grid;
  gap: 13px;
}

.auth-fields.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
  min-width: 0;
}

.auth-field.full-width {
  grid-column: 1 / -1;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: .76rem;
  font-weight: 750;
}

.auth-control-wrap {
  position: relative;
}

.auth-control {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #d7dee8;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--auth-text);
  font-size: .86rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-control::placeholder {
  color: #a1acba;
}

.auth-control:focus {
  border-color: #3976a8;
  box-shadow: 0 0 0 3px rgba(39, 86, 255, .1);
}

.auth-control.is-invalid {
  border-color: #dc2626;
  background: #fffafa;
}

.auth-control-wrap .auth-control {
  padding-right: 44px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: #f1f5f9;
  color: var(--auth-text);
}

.auth-error {
  display: block;
  margin-top: 5px;
  color: #b91c1c;
  font-size: .7rem;
  font-weight: 650;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: #526174;
  font-size: .76rem;
  font-weight: 650;
}

.auth-form-row a {
  color: #265c89;
  font-weight: 750;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auth-check input {
  accent-color: var(--auth-orange);
}

.auth-submit {
  width: 100%;
  min-height: 43px;
  margin-top: 16px;
  border: 0;
  border-radius: 9px;
  background: var(--auth-orange);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 103, 36, .2);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
  background: #e95718;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 103, 36, .26);
}

.auth-submit:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}

.auth-switch {
  margin-top: 14px;
  text-align: center;
  color: var(--auth-muted);
  font-size: .76rem;
  font-weight: 650;
}

.auth-switch a {
  margin-left: 4px;
  color: #265c89;
  font-weight: 800;
}

.auth-password-rules {
  grid-column: 1 / -1;
  padding: 11px 12px;
  border: 1px solid #e0e6ee;
  border-radius: 9px;
  background: #f8fafc;
}

.auth-password-rules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #435166;
  font-size: .72rem;
  font-weight: 800;
}

.auth-password-rules-head i {
  margin-right: 5px;
  color: var(--auth-orange);
}

.auth-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #778496;
  font-size: .67rem;
  font-weight: 650;
}

.auth-rule i {
  color: #a8b2bf;
  font-size: .64rem;
}

.auth-rule.is-met,
.auth-rule.is-met i {
  color: #15803d;
}

@media (max-width: 900px) {
  .auth-page {
    align-items: flex-start;
    padding: 20px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .auth-context {
    min-height: auto;
    padding: 24px 28px;
  }

  .auth-context h1 {
    font-size: 1.7rem;
  }

  .auth-context-copy {
    margin-top: 9px;
  }

  .auth-benefits,
  .auth-context-foot {
    display: none;
  }
}

@media (max-width: 600px) {
  .auth-page {
    min-height: calc(100vh - 72px);
    align-items: center;
    padding: 12px;
  }

  .auth-context {
    display: none;
  }

  .auth-panel {
    padding: 22px 20px;
  }

  .auth-panel-header {
    margin-bottom: 18px;
  }

  .auth-fields.two-column {
    grid-template-columns: 1fr;
  }

  .auth-field.full-width,
  .auth-password-rules {
    grid-column: auto;
  }

  .auth-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .auth-page {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .auth-context {
    min-height: 470px;
    padding: 28px 32px;
  }

  .auth-benefits {
    margin-top: 20px;
  }

  .auth-panel {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
