/* ==========================================================
   Auth pages — login, register, OTP, forgot / reset password,
   verify. Split card: purple brand side + white form side.
   Prefix: au-
   ========================================================== */
.au-page {
  --au-purple: #5a1fd3;
  --au-purple-2: #7b19cb;
  --au-purple-3: #4d22d7;
  --au-ink: #1f1640;
  --au-muted: #6b6785;
  --au-line: #ece9f6;
  --au-soft: #f6f4fd;
  --au-orange-1: #fc9715;
  --au-orange-2: #e45b2d;
  --au-green: #16a36a;
  background: linear-gradient(180deg, #f7f5ff 0%, #ffffff 60%);
}
.au-page h1,
.au-page h2,
.au-page h3 {
  text-transform: none;
}

/* ---------- split card ---------- */
.au-card.main-area {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  margin-top: -70px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--au-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(60, 30, 140, 0.12);
}
.au-card--narrow.main-area {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- brand side ---------- */
.au-brand {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 40px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, var(--au-purple-2) 0%, var(--au-purple) 55%, var(--au-purple-3) 100%);
}
.au-brand::before,
.au-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.au-brand::before {
  top: -120px;
  right: -110px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
}
.au-brand::after {
  bottom: -90px;
  left: -80px;
  width: 260px;
  height: 260px;
  border: 40px solid rgba(255, 255, 255, 0.06);
}
.au-brand__logo {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.au-brand__logo img {
  display: block;
  width: 170px;
  height: auto;
}
.au-brand__copy {
  margin-top: 30px;
}
.au-brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.au-brand__title {
  margin: 16px 0 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}
.au-brand__text {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.au-brand__media {
  text-align: center;
}
.au-brand__media a {
  display: block;
}
.au-brand__frame {
  display: block;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 0, 70, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a:hover > .au-brand__frame {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(20, 0, 70, 0.36);
}
.au-brand__frame img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
}
.au-brand__frame--qr {
  display: inline-block;
  max-width: 220px;
}
.au-brand__caption {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.au-brand__caption i {
  margin-right: 6px;
  color: #ffeb3b;
}

/* ---------- form side ---------- */
.au-form {
  min-width: 0;
  padding: 48px 48px 44px;
}
.au-form--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.au-head {
  margin-bottom: 26px;
}
.au-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--au-purple);
  background: rgba(90, 31, 211, 0.08);
}
.au-title,
.au-page h3.au-title,
.au-page h1.au-title {
  margin: 14px 0 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--au-ink);
  transform: none;
}
.au-sub {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--au-muted);
}

/* alerts / messages */
.au-alerts {
  font-size: 15px;
  line-height: 1.6;
  color: #b42318;
}
.au-alerts:empty {
  display: none;
}
.au-form .alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  text-align: left;
}
.au-form .alert-danger {
  color: #b42318;
  background: #fdecea;
}
.au-form .alert-success {
  color: #0d7a4f;
  background: #e6f6ef;
}
.au-form .alert-warning {
  color: #8a5300;
  background: #fff4e0;
}
.au-form .alert-info {
  color: var(--au-purple-3);
  background: var(--au-soft);
}
.au-errors {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #b42318;
}
.au-errors:empty {
  display: none;
}

/* fields */
.au-form .form-group {
  margin-bottom: 16px;
}
.au-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--au-ink);
}
.au-form .form-control {
  height: 52px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--au-ink);
}
.au-form .form-control::placeholder {
  color: #9a96b0;
}
.au-form .input-group {
  flex-wrap: nowrap;
}
.au-form .input-group > .form-control {
  min-width: 0;
}
.au-form .input-group > .form-control:not(:last-child) {
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.au-form .input-group > .form-control:not(:first-child) {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.au-form .input-group-text {
  min-width: 52px;
  height: 52px;
  justify-content: center;
  border: 1.5px solid #e3def5;
  background: var(--au-soft);
  color: var(--au-purple);
  font-size: 16px;
}
.au-form .input-group-append .input-group-text {
  border-radius: 0 12px 12px 0;
}
.au-form .input-group-append:first-child .input-group-text {
  border-radius: 12px 0 0 12px;
}
.au-form .toggle-password {
  cursor: pointer;
}
.au-form .input-group:focus-within .input-group-text {
  border-color: var(--au-purple);
}
.au-form .invalid-feedback {
  font-size: 14px;
}

/* row with remember-me + forgot link */
.au-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 18px 0 0;
}
.au-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  min-height: 40px;
}
.au-check .form-check-input {
  position: static;
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
}
.au-check .form-check-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--au-muted);
  cursor: pointer;
}
.au-link,
.au-form a.au-link {
  display: inline;
  font-size: 15px;
  font-weight: 600;
  color: var(--au-purple);
  text-decoration: none;
}
.au-link:hover {
  color: var(--au-purple-2);
  text-decoration: underline;
}

/* buttons */
.au-btn,
.au-form .signin-form button[type="submit"].au-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 22px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.2;
}
.au-btn i {
  transition: transform 0.2s ease;
}
.au-btn:hover i {
  transform: translateX(4px);
}
.au-btn--ghost,
.au-btn--ghost:focus {
  color: var(--au-purple);
  background: #fff;
  border: 1.5px solid #d9d0f7;
  box-shadow: none;
}
.au-btn--ghost:hover {
  color: #fff;
  border-color: var(--au-purple);
  background: linear-gradient(135deg, var(--au-purple-2), var(--au-purple));
}
.au-btn--soft,
.au-btn--soft:focus {
  color: var(--au-purple);
  background: var(--au-soft);
  background-image: none;
  box-shadow: none;
}
.au-btn--soft:hover {
  color: var(--au-purple);
  background: #ebe5fd;
}
.au-btn[disabled] {
  opacity: 0.65;
  transform: none;
}
.au-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* divider + switch (login <-> register) */
.au-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--au-muted);
}
.au-divider::before,
.au-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--au-line);
}
.au-foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--au-line);
  font-size: 15px;
  line-height: 1.7;
  color: var(--au-muted);
}
.au-foot p {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--au-muted);
}
.au-foot a {
  display: inline;
  font-weight: 600;
  color: var(--au-purple);
}
.au-foot .au-terms a {
  color: var(--au-orange-2);
}
.au-foot__or {
  display: block;
  margin: 2px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a29fb8;
}

/* centered intro (forgot password steps) */
.au-step {
  text-align: left;
}
.au-step__icon {
  display: block;
  width: 84px;
  height: auto;
  margin-bottom: 16px;
}
.au-step .message:empty {
  display: none;
}
.au-step .message {
  margin: 8px 0 0;
  color: var(--au-muted);
}
.au-step .bottom-text {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--au-muted);
}
.au-step .bottom-text a {
  display: inline;
  font-weight: 600;
  color: var(--au-purple);
}
.au-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--au-muted);
}
.au-inline-btn,
.au-form .btn-link.au-inline-btn {
  display: inline;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--au-purple);
  background: none;
  box-shadow: none;
}
.au-inline-btn:hover {
  transform: none;
  text-decoration: underline;
}

/* ---------- intl-tel-input (also used in the app-link modal) ---------- */
.au-page .iti,
.au-modal .iti {
  display: block;
  width: 100% !important;
}
.au-page .iti__country-list,
.au-modal .iti__country-list {
  max-width: calc(100vw - 48px);
  max-height: 240px;
  white-space: normal;
  overflow-x: hidden;
  border: 1px solid var(--au-line, #ece9f6);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(60, 30, 140, 0.16);
}
.au-page .iti__country,
.au-modal .iti__country {
  padding: 8px 12px;
}
.au-page .iti--separate-dial-code .iti__selected-flag,
.au-modal .iti--separate-dial-code .iti__selected-flag {
  border-radius: 12px 0 0 12px;
  background-color: #f6f4fd;
}

/* ---------- app-link modal on the login page ---------- */
.au-modal .modal-dialog {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
}
.au-modal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(60, 30, 140, 0.22);
}
.au-modal .modal-header {
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #ece9f6;
}
.au-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f1640;
}
.au-modal .modal-header .close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -8px -8px -8px auto;
  padding: 0;
  font-size: 26px;
  cursor: pointer;
}
.au-modal .modal-body {
  padding: 22px 24px;
}
.au-modal .modal-body .col-md-12 {
  padding: 0;
}
.au-modal .form-control {
  height: 50px;
}
.au-modal .modal-footer {
  gap: 10px;
  padding: 18px 0 0;
  border-top: 0;
}
.au-modal .modal-footer .btn {
  min-height: 44px;
  margin: 0;
  padding: 10px 22px;
}
.au-modal .btn-secondary,
.au-modal .btn-secondary:focus {
  color: #5a1fd3;
  background: #f6f4fd;
  background-image: none;
  box-shadow: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .au-form {
    padding: 40px 36px;
  }
  .au-brand {
    padding: 38px 32px;
  }
}
@media (max-width: 991px) {
  .au-card.main-area {
    grid-template-columns: minmax(0, 1fr);
  }
  /* brand collapses to a compact header */
  .au-brand {
    gap: 0;
    padding: 22px 26px;
  }
  .au-brand::before {
    top: -160px;
  }
  .au-brand::after {
    display: none;
  }
  .au-brand__top {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .au-brand__logo {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .au-brand__logo img {
    width: 120px;
  }
  .au-brand__copy {
    margin-top: 0;
    min-width: 0;
  }
  .au-brand__eyebrow {
    padding: 4px 10px;
    font-size: 11px;
  }
  .au-brand__title {
    margin-top: 6px;
    font-size: 19px;
  }
  .au-brand__text,
  .au-brand__media {
    display: none;
  }
}
@media (max-width: 767px) {
  .au-card.main-area {
    border-radius: 18px;
  }
  .au-form {
    padding: 26px 18px 24px;
  }
  .au-title,
  .au-page h3.au-title,
  .au-page h1.au-title {
    font-size: 24px;
  }
  .au-sub,
  .au-text {
    font-size: 15px;
  }
  .au-head {
    margin-bottom: 20px;
  }
}
@media (max-width: 480px) {
  .au-brand {
    padding: 18px 18px;
  }
  .au-brand__top {
    gap: 14px;
  }
  .au-brand__logo img {
    width: 96px;
  }
  .au-brand__title {
    font-size: 17px;
  }
  .au-brand__eyebrow {
    display: none;
  }
  .au-btn-row {
    grid-template-columns: 1fr;
  }
  .au-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* jquery-validate messages + misc */
.au-form label.error {
  display: block;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #b42318;
}
.au-btn-row .btn-block + .btn-block {
  margin-top: 0;
}
.au-otp .au-head {
  margin-bottom: 14px;
}
