html.auth2-html,
body.auth2-body {
  min-height: 100%;
}

body.auth2-body {
  margin: 0;
  color: #081225;
  background: #f8fbff;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.auth2-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(430px, 54vw) minmax(420px, 1fr);
  background:
    radial-gradient(circle at 74% 18%, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(90deg, #020b1d 0%, #020b1d 54%, #ffffff 54%, #ffffff 100%);
}

.auth2-visual {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: #081225;
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
}

.auth2-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--auth2-image);
  background-size: cover;
  background-position: center;
}

.auth2-visual::after {
  display: none;
}

.auth2-grid-glow {
  display: none;
}

.auth2-visual-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
}

.auth2-logo-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(34px, 5vw, 58px);
  text-decoration: none;
  color: #081225;
}

.auth2-logo-left img {
  height: clamp(44px, 4vw, 62px);
  width: auto;
  filter: drop-shadow(0 18px 38px rgba(0, 126, 255, .24));
}

.auth2-visual h2 {
  max-width: 520px;
  margin: 0 0 30px;
  color: #081225;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 850;
}

.auth2-visual h2 span {
  display: block;
  background: none;
  color: #081225;
  -webkit-text-fill-color: #081225;
}

.auth2-points {
  display: grid;
  gap: 20px;
  margin: 0 20px 30px 0px;
  padding: 26px 28px;
  /*background: rgba(255, 255, 255, .5);*/
  border: 1px solid rgba(8, 18, 37, .12);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(16px);
}

.auth2-point {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
  max-width: 390px;
}

.auth2-point i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16b7ff;
  border: 1px solid rgba(22, 183, 255, .34);
  border-radius: 14px;
  background: rgba(0, 126, 255, .09);
  box-shadow: inset 0 0 22px rgba(0, 194, 255, .08);
}

.auth2-point strong {
  display: block;
  color: #081225;
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 3px;
}

.auth2-point span {
  color: rgba(8, 18, 37, .78);
  line-height: 1.55;
}

.auth2-line {
  position: relative;
  max-width: 410px;
  margin: 28px 0 0;
  padding-top: 24px;
  color: rgba(8, 18, 37, .92);
  font-size: clamp(1.15rem, 1.4vw, 1.42rem);
  line-height: 1.35;
}

.auth2-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 78px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0ea5ff, rgba(255, 196, 87, .85));
}

.auth2-quote {
  position: absolute;
  z-index: 1;
  width: min(270px, 28vw);
  padding: 20px 22px;
  border-radius: 22px;
  color: rgba(8, 18, 37, .9);
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(8, 18, 37, .12);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px);
}

.auth2-quote i {
  display: block;
  color: rgba(93, 185, 255, .86);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.auth2-quote p {
  margin: 0 0 10px;
  font-size: .95rem;
  line-height: 1.5;
}

.auth2-quote span {
  color: #0ea5ff;
  font-size: .82rem;
  font-weight: 750;
}

.auth2-quote--one {
  top: 8%;
  right: 11%;
}

.auth2-quote--two {
  top: 32%;
  right: 5%;
}

.auth2-quote--three {
  bottom: 22%;
  right: 9%;
}

.auth2-main {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 60px);
  background:
    radial-gradient(circle at 52% 18%, rgba(0, 194, 255, .08), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  overflow-y: auto;
}

.auth2-lang {
  position: fixed;
  top: 28px;
  right: 30px;
  z-index: 5;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #64748b;
  font-size: .9rem;
}

.auth2-lang > a {
  color: #344054;
  text-decoration: none;
  font-weight: 650;
}

.auth2-card {
  width: min(100%, 485px);
  margin: 36px auto;
}

.auth2-logo-main {
  text-align: center;
  margin-bottom: 28px;
}

.auth2-logo-main img {
  width: min(350px, 82%);
  height: auto;
}

.auth2-title {
  margin: 0 0 10px;
  color: #071226;
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
}

.auth2-sub {
  max-width: 410px;
  margin: 0 auto 30px;
  color: #667085;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.55;
}

.auth2-form {
  display: grid;
  gap: 18px;
}

.auth2-field label,
.auth2-check label {
  color: #344054;
  font-size: .92rem;
  font-weight: 680;
}

.auth2-input {
  position: relative;
}

.auth2-input > i,
.auth2-input .auth2-input-icon {
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #98a2b3;
  font-size: 1.25rem;
  pointer-events: none;
}

.auth2-input .form-control {
  width: 100%;
  min-height: 62px;
  padding: 16px 18px 16px 56px;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth2-input .form-control::placeholder {
  color: #a4acb9;
  font-weight: 560;
}

.auth2-input .form-control:focus {
  background: #fff;
  border-color: #1da7ff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12), 0 12px 28px rgba(14, 165, 233, .08);
  outline: none;
}

.auth2-password-toggle,
.auth2-pass-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.auth2-password-toggle:hover,
.auth2-pass-toggle:hover {
  background: #eef6ff;
  color: #0b83e6;
}

.auth2-input--password .form-control {
  padding-right: 58px;
}

.auth2-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: -4px;
}

.auth2-check {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #344054;
}

.auth2-check .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  border-color: #c8d5e4;
}

.auth2-link {
  color: #0b83e6;
  text-decoration: none;
  font-weight: 750;
}

.auth2-link:hover {
  color: #005ecb;
  text-decoration: underline;
}

.auth2-btn,
.auth2-google {
  min-height: 58px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.auth2-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #0bbdf4 0%, #1167f5 100%);
  box-shadow: 0 20px 42px rgba(17, 103, 245, .25);
}

.auth2-btn:hover,
.auth2-btn:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 24px 46px rgba(17, 103, 245, .32);
}

.auth2-btn:disabled {
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.auth2-google {
  color: #101828;
  text-decoration: none;
  border: 1px solid #d9e3ef;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
}

.auth2-google:hover,
.auth2-google:focus {
  color: #101828;
  transform: translateY(-1px);
  border-color: #c8d5e4;
  box-shadow: 0 18px 32px rgba(15, 23, 42, .08);
}

.auth2-google .bi-google {
  color: #4285f4;
  font-size: 1.25rem;
}

.auth2-sep {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  color: #667085;
  font-size: .94rem;
  font-weight: 680;
  margin: 8px 0;
}

.auth2-sep::before,
.auth2-sep::after {
  content: "";
  height: 1px;
  background: #e4eaf2;
}

.auth2-meta,
.auth2-help {
  text-align: center;
  color: #667085;
}

.auth2-meta {
  margin-top: 24px;
  font-weight: 650;
}

.auth2-help {
  margin-top: 28px;
  line-height: 1.55;
}

.auth2-help strong {
  display: block;
  color: #344054;
  font-weight: 650;
  margin-bottom: 6px;
}

.auth2-captcha,
.auth2-admin {
  padding: 14px;
  border-radius: 16px;
  background: #f3f8ff;
  border: 1px solid #d9eafa;
}

.auth2-captcha label {
  color: #475467;
  margin-bottom: 8px;
}

.auth2-alert.alert {
  border-radius: 14px;
  margin: 0;
  font-weight: 650;
}

.auth2-terms {
  margin: -4px 0 2px;
  color: #667085;
  font-size: .92rem;
  line-height: 1.55;
}

.auth2-back {
  position: fixed;
  top: 28px;
  left: 30px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(8, 18, 37, .78);
  text-decoration: none;
  font-weight: 700;
}

.auth2-back:hover {
  color: #081225;
}

.auth2-back--light {
  color: #344054;
}

.auth2-back--light:hover {
  color: #0b83e6;
}

.google-help-wrap {
  text-align: center;
  margin: 8px 0 2px;
}

.google-help-trigger {
  color: #667085;
  font-size: .82rem;
  text-decoration: none;
  font-weight: 650;
}

.google-help-trigger:hover {
  color: #0b83e6;
}

.google-info-modal .modal-content {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.google-info-modal .modal-header,
.google-info-modal .modal-footer {
  border: 0;
}

.google-info-box {
  padding: 14px;
  border-radius: 16px;
  background: #f3f8ff;
  border: 1px solid #d9eafa;
}

.auth2-help-modal .modal-dialog {
  max-width: 560px;
}

.auth2-help-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .12), transparent 30%),
    #ffffff;
  box-shadow: 0 34px 100px rgba(15, 23, 42, .24);
}

.auth2-help-modal .modal-body {
  padding: 42px;
  text-align: center;
}

.auth2-help-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.auth2-help-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #087ee7;
  font-size: 1.8rem;
  border-radius: 22px;
  background: linear-gradient(145deg, #e8f8ff, #e7efff);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .12);
}

.auth2-help-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #087ee7;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth2-help-modal h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.auth2-help-modal .modal-body > p {
  max-width: 410px;
  margin: 0 auto 26px;
  color: #64748b;
  line-height: 1.6;
}

.auth2-help-options {
  display: grid;
  gap: 12px;
  text-align: left;
}

.auth2-help-option {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  color: #0f172a;
  text-decoration: none;
  border: 1px solid #dce6f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth2-help-option:hover,
.auth2-help-option:focus {
  color: #0f172a;
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, .42);
  box-shadow: 0 16px 34px rgba(14, 116, 190, .11);
}

.auth2-help-option-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #087ee7;
  font-size: 1.2rem;
  border-radius: 15px;
  background: #eef8ff;
}

.auth2-help-option strong,
.auth2-help-option small {
  display: block;
}

.auth2-help-option strong {
  margin-bottom: 3px;
  font-size: .96rem;
}

.auth2-help-option small {
  color: #64748b;
  line-height: 1.4;
}

.auth2-help-option > .bi-arrow-right {
  color: #94a3b8;
}

@media (max-width: 1180px) {
  .auth2-shell {
    grid-template-columns: minmax(360px, 46vw) minmax(390px, 1fr);
  }

  .auth2-quote {
    display: none;
  }
}

@media (max-width: 920px) {
  .auth2-shell {
    display: block;
    min-height: 100dvh;
    background: #fff;
  }

  .auth2-visual {
    min-height: 320px;
    padding: 28px;
    align-items: flex-end;
  }

  .auth2-logo-left {
    margin-bottom: 22px;
  }

  .auth2-visual h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .auth2-points,
  .auth2-line {
    display: none;
  }

  .auth2-main {
    min-height: auto;
    display: block;
    padding: 34px 20px 44px;
  }

  .auth2-lang {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .auth2-back {
    position: absolute;
    top: 18px;
    left: 18px;
  }

  .auth2-card {
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .auth2-visual {
    min-height: 235px;
  }

  .auth2-logo-left img {
    height: 38px;
  }

  .auth2-title {
    font-size: 1.9rem;
  }

  .auth2-actions {
    display: grid;
    gap: 12px;
  }

  .auth2-input .form-control {
    min-height: 56px;
  }

  .auth2-help-modal .modal-body {
    padding: 38px 20px 24px;
  }

  .auth2-help-option {
    grid-template-columns: 44px 1fr auto;
    gap: 11px;
    padding: 13px;
  }

  .auth2-help-option-icon {
    width: 44px;
    height: 44px;
  }
}

/* Auth v2 final responsive balance: desktop/iPad Pro = 50/50, tablet/mobile = form only. */
@media (min-width: 1024px) {
  .auth2-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background:
      radial-gradient(circle at 78% 16%, rgba(19, 184, 255, .10), transparent 34%),
      linear-gradient(90deg, #020b1d 0 50%, #ffffff 50% 100%);
  }

  .auth2-visual {
    display: flex;
    min-height: 100dvh;
    padding: clamp(30px, 4vw, 64px);
  }

  .auth2-main {
    min-height: 100dvh;
    padding: clamp(26px, 3.5vw, 52px);
  }

  .auth2-visual-content {
    width: min(560px, 100%);
  }

  .auth2-logo-left {
    margin-bottom: clamp(24px, 3.5vw, 44px);
  }

  .auth2-visual h2 {
    max-width: 560px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    font-weight: 780;
    text-wrap: balance;
  }

  .auth2-point {
    grid-template-columns: 38px 1fr;
    gap: 14px;
    max-width: 390px;
  }

  .auth2-point i {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .auth2-point strong {
    font-size: 1rem;
    font-weight: 700;
  }

  .auth2-point span {
    font-size: .92rem;
    line-height: 1.45;
  }

  .auth2-line {
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    font-weight: 500;
  }

  .auth2-quote {
    width: min(245px, 24vw);
    padding: 18px;
  }
}

.auth2-card {
  width: min(100%, 430px);
  margin: 22px auto;
}

.auth2-logo-main {
  margin-bottom: 22px;
}

.auth2-logo-main img {
  width: min(260px, 70%);
}

.auth2-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth2-head h1 {
  font-size: clamp(1.85rem, 2.7vw, 2.7rem);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.auth2-head p {
  max-width: 390px;
  font-size: .95rem;
  line-height: 1.5;
  font-weight: 400;
  color: #475467;
}

.auth2-field label,
.auth2-check label,
.auth2-actions label {
  font-size: .84rem;
  font-weight: 640;
}

.auth2-input .form-control {
  min-height: 54px;
  padding: 14px 16px 14px 50px;
  font-size: .95rem;
  font-weight: 500;
  border-radius: 15px;
}

.auth2-input .form-control::placeholder {
  font-weight: 400;
}

.auth2-input > i,
.auth2-input .auth2-input-icon {
  left: 18px;
  font-size: 1.12rem;
}

.auth2-btn,
.auth2-google {
  min-height: 52px;
  font-size: .94rem;
  font-weight: 700;
  border-radius: 14px;
}

.auth2-sep {
  margin: 6px 0;
  font-size: .86rem;
  font-weight: 500;
}

.auth2-meta,
.auth2-help,
.auth2-terms {
  font-size: .88rem;
  font-weight: 400;
}

.auth2-meta a,
.auth2-help a,
.auth2-terms a {
  font-weight: 700;
}

.auth2-help strong {
  font-weight: 400;
  color: #667085;
}

@media (max-width: 1023.98px) {
  .auth2-shell {
    display: block;
    min-height: 100dvh;
    background: #ffffff;
  }

  .auth2-visual {
    display: none !important;
  }

  .auth2-main {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 44px 22px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .auth2-main::-webkit-scrollbar {
    display: none;
  }

  .auth2-lang {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .auth2-back {
    position: absolute;
    top: 18px;
    left: 18px;
    color: #344054;
  }

  .auth2-card {
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .auth2-card {
    width: 100%;
  }

  .auth2-logo-main img {
    width: min(220px, 72%);
  }

  .auth2-head h1 {
    font-size: 2rem;
  }

  .auth2-form {
    gap: 12px;
  }
}
