/* Custom auth pages */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Login and register */
:is(.lg-root, .rg-root) {
  font-family: var(--bs-font-sans-serif);
  background: #f0f4f9;
  width: 100%;
  display: flex;
  margin: 0;
  padding: 0;
}

.lg-root {
  min-height: 100vh;
}

.rg-root {
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

:is(.lg-left, .rg-left) {
  width: 42%;
  min-width: 280px;
  background: linear-gradient(160deg, #101011 0%, #1d4ed8 55%, #60a5fa 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

:is(.lg-left, .rg-left)::before,
:is(.lg-left, .rg-left)::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

:is(.lg-left, .rg-left)::before {
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
}

:is(.lg-left, .rg-left)::after {
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
}

:is(.lg-brand, .rg-brand) {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

:is(.lg-brand-icon, .rg-brand-icon) {
  position: relative;
  width: 72px;
  height: 72px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 10px;
  backdrop-filter: blur(10px);
}

:is(.lg-brand-icon, .rg-brand-icon)::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(96, 165, 250, 0.22),
    transparent 62%
  );
  z-index: -1;
}

:is(.lg-brand-icon, .rg-brand-icon) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.08);
  filter: saturate(1.03) contrast(1.04);
}

:is(.lg-brand-name, .rg-brand-name) {
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

:is(.lg-brand-sub, .rg-brand-sub) {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}

:is(.lg-headline, .rg-headline) {
  font-family: inherit;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
}

:is(.lg-subline, .rg-subline) {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
  margin: 0 0 auto;
}

.lg-subline {
  max-width: 100%;
}

.rg-subline {
  max-width: 100%;
}

:is(.lg-features, .rg-features) {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 40px;
}

:is(.lg-feature, .rg-feature) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

:is(.lg-feature-dot, .rg-feature-dot) {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

:is(.lg-feature-dot, .rg-feature-dot) i {
  font-size: 14px;
  color: #ffffff;
}

:is(.lg-feature-text, .rg-feature-text) strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}

:is(.lg-feature-text, .rg-feature-text) span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

:is(.lg-right, .rg-right) {
  flex: 1;
  background: #fff;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lg-right {
  overflow-y: auto;
}

.rg-right {
  min-height: 100dvh;
  height: auto;
  overflow-y: auto;
}

:is(.lg-auth-card, .rg-auth-card) {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.03);
  padding: 32px 34px 30px;
}

.lg-auth-card {
  width: min(100%, 560px);
}

.rg-auth-card {
  width: min(100%, 680px);
  max-height: none;
}

:is(.lg-form-header, .rg-form-header) {
  margin-bottom: 24px;
}

:is(.lg-step-badge, .rg-step-badge) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

:is(.lg-step-badge, .rg-step-badge) i {
  font-size: 12px;
}

:is(.lg-form-title, .rg-form-title) {
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.2;
}

:is(.lg-form-desc, .rg-form-desc) {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

:is(.lg-alert, .rg-alert-success, .rg-alert-danger) {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.lg-alert-success,
.rg-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.lg-alert-danger,
.rg-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

:is(.lg-alert-danger, .rg-alert-danger) ul {
  margin: 0;
  padding-left: 18px;
}

.lg-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 20px 0;
}

.rg-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0;
}

:is(.lg-fieldset, .rg-fieldset) {
  border: 0;
  padding: 0;
  margin: 0;
}

:is(.lg-legend, .rg-legend) {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 14px;
  display: block;
}

:is(.lg-field, .rg-field) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.rg-field--compact {
  margin-bottom: 14px;
}

:is(.lg-label, .rg-label) {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

:is(.lg-input, .lg-select, .rg-input, .rg-select) {
  height: 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: var(--bs-font-sans-serif);
  color: #0f172a;
  background: #fafbfc;
  outline: none;
  width: 100%;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

:is(.lg-input, .rg-input)::placeholder {
  color: #c0c9d8;
  font-size: 13px;
}

:is(.lg-input:focus, .lg-select:focus, .rg-input:focus, .rg-select:focus) {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
  border-color: #1d4ed8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

:is(
  .lg-input.is-invalid,
  .lg-select.is-invalid,
  .rg-input.is-invalid,
  .rg-select.is-invalid
) {
  border-color: #f87171;
  background: #fff;
}

.rg-input.is-invalid:focus,
.rg-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

:is(.lg-invalid-feedback, .rg-invalid-feedback) {
  font-size: 12px;
  color: #ef4444;
  margin-top: 2px;
}

.rg-invalid-feedback--top {
  margin-top: 4px;
}

.rg-invalid-feedback--tight {
  margin-top: -10px;
  margin-bottom: 12px;
}

.lg-input-code,
.rg-input-code {
  text-align: center;
  font-weight: 600;
  color: #334155 !important;
  background: #f1f5f9 !important;
  cursor: pointer;
}

:is(.lg-pw-wrap, .rg-pw-wrap) {
  position: relative;
}

:is(.lg-pw-wrap, .rg-pw-wrap) :is(.lg-input, .rg-input) {
  padding-right: 42px;
}

:is(.lg-pw-toggle, .rg-pw-toggle) {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1;
}

:is(.lg-pw-toggle, .rg-pw-toggle) i {
  font-size: 17px;
}

:is(.lg-pw-toggle:hover, .rg-pw-toggle:hover) i {
  color: #64748b;
}

.lg-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 18px;
}

.rg-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
}

:is(.lg-terms, .rg-terms) input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #1d4ed8;
  cursor: pointer;
}

:is(.lg-terms-label, .rg-terms-label) {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

:is(.lg-terms-label, .rg-terms-label) a {
  color: #1d4ed8;
  font-weight: 500;
  text-decoration: none;
}

:is(.lg-terms-label, .rg-terms-label) a:hover {
  text-decoration: underline;
}

:is(.lg-submit, .rg-submit) {
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 13px;
  font-weight: 600;
  font-family: var(--bs-font-sans-serif);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    transform 0.1s,
    opacity 0.15s;
  letter-spacing: 0.01em;
}

.lg-submit {
  width: 45%;
  min-width: 220px;
  max-width: 100%;
  height: 46px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
}

.rg-submit {
  width: 42%;
  min-width: 220px;
  max-width: 100%;
  height: 44px;
  margin-left: auto;
  margin-right: auto;
  font-size: 13.5px;
}

:is(.lg-submit:hover, .rg-submit:hover) {
  background: #1e40af;
}

:is(.lg-submit:active, .rg-submit:active) {
  transform: scale(0.99);
}

:is(.lg-submit:disabled, .rg-submit:disabled) {
  opacity: 0.65;
  cursor: not-allowed;
}

:is(.lg-submit, .rg-submit) i {
  font-size: 16px;
}

:is(.lg-bottom, .rg-signin) {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.lg-bottom {
  margin-top: 16px;
}

.rg-signin {
  margin-top: 14px;
}

:is(.lg-bottom, .rg-signin) a {
  color: #1d4ed8;
  font-weight: 500;
  text-decoration: none;
}

:is(.lg-bottom, .rg-signin) a:hover {
  text-decoration: underline;
}

.lg-forgot-link {
  font-size: 12px;
  color: #1d4ed8;
  text-decoration: none;
}

.lg-forgot-link:hover {
  text-decoration: underline;
}

/* Register specific */
.rg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.rg-row-phone {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  align-items: start;
}

.rg-select-wrap,
.rg-code-picker,
.rg-business-picker {
  position: relative;
}

.rg-input-code {
  padding-left: 12px;
  padding-right: 40px;
  text-align: center;
  text-align-last: center;
  background-image: none !important;
  cursor: pointer;
}

.rg-code-trigger,
.rg-business-trigger {
  position: relative;
  width: 100%;
  padding-right: 40px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.rg-code-current,
.rg-business-current {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rg-code-current {
  text-align: center;
}

.rg-business-current {
  text-align: left;
}

.rg-business-current.is-placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.rg-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
}

.rg-code-menu,
.rg-business-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  z-index: 40;
  display: none;
}

.rg-code-menu {
  width: min(320px, calc(100vw - 24px));
  min-width: 240px;
}

.rg-business-menu {
  width: 100%;
}

.rg-code-picker.is-open .rg-code-menu,
.rg-business-picker.is-open .rg-business-menu {
  display: block;
}

.rg-code-option,
.rg-business-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}

.rg-business-option {
  justify-content: flex-start;
}

.rg-code-option:hover,
.rg-code-option.is-selected,
.rg-business-option:hover,
.rg-business-option.is-selected {
  background: #eff6ff;
  color: #1d4ed8;
}

.rg-code-option-name,
.rg-business-option-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rg-code-option-code {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
}

.rg-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fafbfc;
  padding-right: 36px;
  cursor: pointer;
}

.rg-input:-webkit-autofill,
.rg-input:-webkit-autofill:hover,
.rg-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  caret-color: #0f172a;
  transition: background-color 9999s ease-in-out 0s;
}

.rg-pw-strength {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 6px;
}

.rg-bar {
  height: 3px;
  flex: 1;
  border-radius: 4px;
  background: #e2e8f0;
  transition: background 0.2s;
}

.rg-bar.s-weak {
  background: #f97316;
}

.rg-bar.s-fair {
  background: #eab308;
}

.rg-bar.s-strong {
  background: #22c55e;
}

.rg-strength-label {
  font-size: 11px;
  color: #94a3b8;
  min-width: 42px;
  text-align: right;
}

.rg-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.rg-or-line {
  flex: 1;
  height: 1px;
  background: #f1f5f9;
}

.rg-or-text {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.rg-google {
  width: 50%;
  justify-self: center;
  height: 44px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--bs-font-sans-serif);
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    border-color 0.15s,
    background 0.15s;
  text-decoration: none;
}

.rg-google:hover {
  background: #f8fafc;
  border-color: #bfdbfe;
}

.rg-google img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.rg-recaptcha-wrap {
  margin-top: 4px;
}

/* Success, profile completion, and OTP */
:is(.success-shell, .onboard-shell, .verify-shell) {
  min-height: 100vh;
  padding: 18px 0;
  display: flex;
  align-items: center;
}

:is(.success-shell, .onboard-shell) {
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 197, 94, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(29, 78, 216, 0.12),
      transparent 26%
    ),
    linear-gradient(180deg, #f6fbff 0%, #f4f8ff 100%);
}

.verify-shell {
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(14, 165, 233, 0.12),
      transparent 26%
    ),
    linear-gradient(180deg, #f7faff 0%, #f5f7fb 100%);
}

:is(.success-shell, .onboard-shell, .verify-shell) > .container-xxl {
  width: 100%;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
}

:is(.success-shell, .onboard-shell, .verify-shell)
  .authentication-wrapper.authentication-basic {
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.success-shell
  .authentication-wrapper.authentication-basic
  .authentication-inner {
  width: min(600px, calc(100vw - 24px));
  max-width: 600px;
}

.onboard-shell
  .authentication-wrapper.authentication-basic
  .authentication-inner {
  width: min(760px, calc(100vw - 24px));
  max-width: 760px;
}

.verify-shell
  .authentication-wrapper.authentication-basic
  .authentication-inner {
  width: min(620px, calc(100vw - 24px));
  max-width: 620px;
}

:is(.success-shell, .onboard-shell, .verify-shell) .authentication-inner.py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

:is(.success-card, .onboard-card, .verify-card) {
  width: 100%;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

:is(.success-card, .onboard-card, .verify-card) .card-body {
  padding: 34px;
}

:is(.success-brand, .onboard-brand, .verify-brand) {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.success-brand {
  margin-bottom: 28px;
  justify-content: center;
}

.onboard-brand {
  margin-bottom: 28px;
}

.verify-brand {
  margin-bottom: 30px;
}

:is(.success-brand-icon, .onboard-brand-icon, .verify-brand-icon) {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  padding: 9px;
  flex-shrink: 0;
}

:is(.success-brand-icon, .onboard-brand-icon, .verify-brand-icon) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:is(.success-brand-copy, .onboard-brand-copy, .verify-brand-copy) {
  line-height: 1.2;
}

:is(.success-brand-name, .onboard-brand-name, .verify-brand-name) {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

:is(.success-brand-sub, .onboard-brand-sub, .verify-brand-sub) {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

:is(.success-title, .onboard-title, .verify-title) {
  margin: 16px 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  color: #0f172a;
}

:is(.success-meta, .onboard-meta, .verify-helper) {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
}

.verify-helper {
  font-size: 0.94rem;
  line-height: 1.65;
}

:is(.success-badge, .onboard-badge, .verify-badge) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
}

.success-badge {
  background: #f0fdf4;
  color: #15803d;
}

.onboard-badge,
.verify-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

.success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(34, 197, 94, 0.24);
}

.success-icon i {
  font-size: 2rem;
  color: #ffffff;
}

:is(.success-alert, .onboard-alert) {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  text-align: center;
}

.verify-alert {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.onboard-form {
  margin-top: 26px;
}

.onboard-form .form-label {
  color: #334155;
  font-weight: 600;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.onboard-form :is(.form-control, .form-select) {
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fafbfc;
  color: #0f172a;
  box-shadow: none;
}

.onboard-form .form-control::placeholder {
  color: #c0c9d8;
}

.onboard-form :is(.form-control:focus, .form-select:focus) {
  border-color: #1d4ed8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.onboard-form .form-text {
  color: #64748b;
  font-size: 12.5px;
}

:is(.onboard-submit, .verify-submit) {
  width: 100%;
  height: 46px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    transform 0.1s,
    opacity 0.15s;
  letter-spacing: 0.01em;
}

:is(.onboard-submit:hover, .verify-submit:hover) {
  background: #1e40af;
}

:is(.onboard-submit:active, .verify-submit:active) {
  transform: scale(0.99);
}

.verify-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.verify-resend {
  width: 100%;
  height: 46px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}

.verify-panel {
  margin-top: 26px;
}

.verify-code-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.verify-code {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding-left: 0.35em;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fafbfc;
  color: #0f172a;
}

.verify-code:focus {
  border-color: #1d4ed8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.verify-otp-note {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.verify-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.verify-footer a {
  color: #1d4ed8;
  font-weight: 500;
  text-decoration: none;
}

.verify-footer a:hover {
  text-decoration: underline;
}

.verify-email-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  :is(.lg-root, .rg-root) {
    flex-direction: column;
  }

  .rg-root {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  :is(.lg-left, .rg-left) {
    width: 100%;
    min-width: 0;
    padding: 32px 24px 28px;
  }

  :is(.lg-brand, .rg-brand) {
    margin-bottom: 28px;
  }

  :is(.lg-features, .rg-features) {
    padding-top: 24px;
  }

  .lg-right {
    padding: 28px 20px 32px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .rg-right {
    padding: 22px 16px 24px;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    overflow: visible;
  }

  :is(.lg-auth-card, .rg-auth-card) {
    width: 100%;
    padding: 28px 22px 26px;
    border-radius: 24px;
  }

  .rg-auth-card {
    max-height: none;
  }

  .rg-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .lg-right {
    padding: 24px 16px 28px;
  }

  .lg-auth-card {
    padding: 24px 16px 22px;
    border-radius: 20px;
  }

  .rg-right {
    padding: 18px 12px 20px;
  }

  .rg-auth-card {
    padding: 20px 14px 18px;
    border-radius: 20px;
  }

  .rg-row-phone {
    grid-template-columns: 108px 1fr;
  }
}

@media (max-height: 880px) and (min-width: 992px) {
  .rg-left {
    padding: 34px 32px;
  }

  .rg-brand {
    margin-bottom: 34px;
  }

  .rg-features {
    padding-top: 24px;
    gap: 8px;
  }

  .rg-right {
    padding: 24px 32px;
    justify-content: flex-start;
  }

  .rg-auth-card {
    padding: 24px 28px 22px;
    max-height: none;
  }

  .rg-form-header {
    margin-bottom: 18px;
  }

  .rg-divider {
    margin: 14px 0;
  }

  .rg-terms {
    margin: 14px 0 18px;
  }

  .rg-signin {
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .lg-submit,
  .rg-submit {
    width: 100%;
    min-width: 0;
  }

  .rg-row-phone {
    grid-template-columns: 1fr;
  }
}
