/* Opto Zero v3.71 — login + registration redesign only */
.opto-auth-page,
.opto-auth-page * {
  box-sizing: border-box;
}

.opto-auth-page {
  --auth-blue: #0f62f5;
  --auth-blue-dark: #0b4ed0;
  --auth-navy: #102a4f;
  --auth-text: #223651;
  --auth-muted: #7d8da6;
  --auth-line: #dde6f1;
  --auth-soft: #f5f8fc;
  width: 100%;
  padding: 46px 20px 58px;
  background:
    radial-gradient(circle at 12% 8%, rgba(15,98,245,.08), transparent 30%),
    radial-gradient(circle at 88% 85%, rgba(15,98,245,.07), transparent 28%),
    #f6f8fb;
}

.opto-auth-shell {
  width: min(1080px, 100%);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  border: 1px solid rgba(197, 210, 226, .78);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(29, 52, 84, .12);
}

.opto-auth-shell--register {
  min-height: 690px;
}

.opto-auth-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 38px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(8, 39, 94, .08), rgba(8, 39, 94, .32)),
    linear-gradient(145deg, #156cff 0%, #0d55da 58%, #093b9f 100%);
}

.opto-auth-hero:after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -140px;
  bottom: -150px;
  border: 44px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.opto-auth-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.opto-auth-hero__glow--one {
  width: 240px;
  height: 240px;
  top: 110px;
  right: -95px;
  background: rgba(255,255,255,.08);
}

.opto-auth-hero__glow--two {
  width: 140px;
  height: 140px;
  left: -55px;
  bottom: 80px;
  background: rgba(255,255,255,.06);
}

.opto-auth-brand,
.opto-auth-mobile-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.opto-auth-brand__mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  color: var(--auth-blue);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.opto-auth-brand__name {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.35px;
}

.opto-auth-hero__content {
  position: relative;
  z-index: 2;
  margin-top: 112px;
}

.opto-auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.opto-auth-hero h1 {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(34px, 3.1vw, 44px);
  line-height: 1.08;
  letter-spacing: -1.25px;
  font-weight: 800;
}

.opto-auth-hero p {
  max-width: 340px;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.7;
}

.opto-auth-benefits {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.opto-auth-benefit {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.95);
  font-size: 13px;
  font-weight: 600;
}

.opto-auth-benefit__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,.14);
}

.opto-auth-benefit__icon svg {
  width: 15px;
  height: 15px;
}

.opto-auth-panel {
  display: flex;
  align-items: center;
  background: #fff;
}

.opto-auth-panel__inner {
  width: min(470px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0;
}

.opto-auth-panel__inner--register {
  width: min(540px, calc(100% - 58px));
  padding-top: 38px;
  padding-bottom: 38px;
}

.opto-auth-mobile-brand {
  display: none;
  margin-bottom: 28px;
}

.opto-auth-mobile-brand .opto-auth-brand__mark {
  background: var(--auth-blue);
  color: #fff;
}

.opto-auth-mobile-brand .opto-auth-brand__name {
  color: var(--auth-navy);
}

.opto-auth-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

.opto-auth-heading__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--auth-blue);
  background: #edf4ff;
}

.opto-auth-heading__icon svg {
  width: 24px;
  height: 24px;
}

.opto-auth-heading h2 {
  margin: 0;
  color: var(--auth-navy);
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.55px;
}

.opto-auth-heading p {
  margin: 5px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.opto-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -4px 0 20px;
  padding: 12px 14px;
  border: 1px solid #ffd0d0;
  border-radius: 12px;
  background: #fff5f5;
  color: #c23939;
  font-size: 13px;
  line-height: 1.45;
}

.opto-auth-alert svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
}

.opto-auth-form {
  margin: 0;
}

.opto-auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.opto-auth-field--wide {
  grid-column: span 2;
}

.opto-auth-field {
  margin-bottom: 19px;
}

.opto-auth-form-grid .opto-auth-field {
  margin-bottom: 0;
}

.opto-auth-field > label,
.opto-auth-label-row label {
  display: block;
  margin: 0 0 8px;
  color: #334862;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.opto-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.opto-auth-label-row a {
  margin-bottom: 8px;
  color: var(--auth-blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  text-decoration: none;
}

.opto-auth-label-row a:hover {
  color: var(--auth-blue-dark);
  text-decoration: underline;
}

.opto-auth-input-wrap {
  position: relative;
}

.opto-auth-input-wrap input[type="text"],
.opto-auth-input-wrap input[type="email"],
.opto-auth-input-wrap input[type="password"] {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 46px 0 46px;
  border: 1.5px solid var(--auth-line);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #1d3048;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(29,52,84,.035);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.opto-auth-input-wrap input::placeholder {
  color: #a5b1c1;
  opacity: 1;
}

.opto-auth-input-wrap input:focus {
  border-color: #7facff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,98,245,.09);
}

.opto-auth-input-icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b9ab0;
  transform: translateY(-50%);
  pointer-events: none;
}

.opto-auth-input-icon svg {
  width: 20px;
  height: 20px;
}

.opto-auth-password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  outline: 0;
  background: transparent;
  color: #8594a8;
  cursor: pointer;
  transform: translateY(-50%);
}

.opto-auth-password-toggle:hover {
  background: #f0f4f9;
  color: var(--auth-blue);
}

.opto-auth-field-error {
  margin-top: 7px;
  color: #d84242;
  font-size: 12px;
  line-height: 1.35;
}

.opto-auth-submit {
  width: 100%;
  height: 53px;
  margin-top: 5px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #126cff 0%, #0757e7 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 11px 26px rgba(15,98,245,.24);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.opto-auth-submit svg {
  width: 20px;
  height: 20px;
  transition: transform .18s ease;
}

.opto-auth-submit:hover {
  filter: brightness(.97);
  box-shadow: 0 13px 30px rgba(15,98,245,.3);
  transform: translateY(-1px);
}

.opto-auth-submit:hover svg {
  transform: translateX(2px);
}

.opto-auth-divider {
  position: relative;
  margin: 28px 0 23px;
  text-align: center;
}

.opto-auth-divider:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e8edf4;
}

.opto-auth-divider span {
  position: relative;
  padding: 0 12px;
  background: #fff;
  color: #9aa7b8;
  font-size: 12px;
}

.opto-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #75859a;
  font-size: 13px;
}

.opto-auth-switch a {
  color: var(--auth-blue);
  font-weight: 800;
  text-decoration: none;
}

.opto-auth-switch a:hover {
  text-decoration: underline;
}

.opto-auth-switch--register {
  margin-top: 22px;
}

.opto-auth-newsletter {
  margin-top: 20px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  background: #f8fafc;
}

.opto-auth-newsletter > div:first-child {
  display: grid;
  gap: 3px;
}

.opto-auth-newsletter strong {
  color: #30445d;
  font-size: 13px;
}

.opto-auth-newsletter > div:first-child span {
  color: #8b98aa;
  font-size: 11px;
}

.opto-auth-segmented {
  flex: 0 0 auto;
  display: flex;
  padding: 3px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
}

.opto-auth-segmented label {
  margin: 0;
  cursor: pointer;
}

.opto-auth-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opto-auth-segmented span {
  min-width: 43px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #6f7f95;
  font-size: 12px;
  font-weight: 700;
  transition: all .18s ease;
}

.opto-auth-segmented input:checked + span {
  background: #e9f2ff;
  color: var(--auth-blue);
  box-shadow: inset 0 0 0 1px #bed6ff;
}

.opto-auth-agree {
  position: relative;
  margin: 17px 0 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #7f8da0;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}

.opto-auth-agree > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opto-auth-checkmark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cdd8e6;
  border-radius: 6px;
  background: #fff;
  color: transparent;
  transition: all .18s ease;
}

.opto-auth-checkmark svg {
  width: 14px;
  height: 14px;
}

.opto-auth-agree > input:checked + .opto-auth-checkmark {
  border-color: var(--auth-blue);
  background: var(--auth-blue);
  color: #fff;
}

.opto-auth-agree a {
  color: var(--auth-blue);
  font-weight: 700;
}

@media (max-width: 900px) {
  .opto-auth-page {
    padding: 30px 16px 44px;
  }

  .opto-auth-shell,
  .opto-auth-shell--register {
    width: min(620px, 100%);
    min-height: 0;
    display: block;
    border-radius: 24px;
  }

  .opto-auth-hero {
    display: none;
  }

  .opto-auth-panel__inner,
  .opto-auth-panel__inner--register {
    width: 100%;
    padding: 34px 34px 36px;
  }

  .opto-auth-mobile-brand {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .opto-auth-page {
    padding: 14px 10px 28px;
    background: #f5f7fb;
  }

  .opto-auth-shell,
  .opto-auth-shell--register {
    border-radius: 19px;
    box-shadow: 0 10px 28px rgba(28, 51, 82, .08);
  }

  .opto-auth-panel__inner,
  .opto-auth-panel__inner--register {
    padding: 23px 16px 25px;
  }

  .opto-auth-mobile-brand {
    margin-bottom: 22px;
  }

  .opto-auth-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 19px;
  }

  .opto-auth-brand__name {
    font-size: 20px;
  }

  .opto-auth-heading {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .opto-auth-heading__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .opto-auth-heading h2 {
    font-size: 22px;
    letter-spacing: -.3px;
  }

  .opto-auth-heading p {
    font-size: 12px;
  }

  .opto-auth-form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .opto-auth-field--wide {
    grid-column: auto;
  }

  .opto-auth-input-wrap input[type="text"],
  .opto-auth-input-wrap input[type="email"],
  .opto-auth-input-wrap input[type="password"] {
    height: 50px;
    border-radius: 13px;
    font-size: 16px; /* prevents iOS zoom */
  }

  .opto-auth-submit {
    height: 51px;
    border-radius: 13px;
  }

  .opto-auth-newsletter {
    align-items: flex-start;
    padding: 12px;
  }

  .opto-auth-newsletter > div:first-child span {
    max-width: 150px;
  }

  .opto-auth-switch {
    flex-wrap: wrap;
  }
}

@media (max-width: 370px) {
  .opto-auth-page {
    padding-left: 7px;
    padding-right: 7px;
  }

  .opto-auth-panel__inner,
  .opto-auth-panel__inner--register {
    padding-left: 13px;
    padding-right: 13px;
  }

  .opto-auth-heading__icon {
    display: none;
  }

  .opto-auth-newsletter {
    display: grid;
    gap: 10px;
  }

  .opto-auth-newsletter > div:first-child span {
    max-width: none;
  }
}
