/* Ezyfit auth — Html-ezyfiit exact match (plain CSS, no Tailwind) */

html:has(.auth-split-root),
body:has(.auth-split-root) {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text-text-body) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

body:has(.auth-split-root) #root {
  min-height: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

.auth-split-root,
.auth-split-root * {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  box-sizing: border-box;
}

.auth-split-root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg, #ffffff);
  color: var(--text-text-body, #666666);
}

.auth-split-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.auth-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* Form column — Html: px-[clamp(20px,4vw,80px)] pt-[clamp(60px,8vw,120px)] pb-10 */
.auth-split-form-col {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  order: 1;
  padding: clamp(28px, 6vw, 80px) clamp(16px, 4vw, 80px) 32px;
  padding-top: max(clamp(28px, 6vw, 80px), env(safe-area-inset-top, 0px));
  padding-bottom: 24px;
  padding-left: max(clamp(16px, 4vw, 80px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 80px), env(safe-area-inset-right, 0px));
  background: #ffffff;
}

.auth-split-form-inner {
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: auth-fade-in 0.35s ease both;
}

/* Logo — Html: mb-6 sm:mb-10 md:mb-14, max-w 200/250/300 */
.auth-split-logo {
  margin: 0 auto 24px;
  width: 100%;
  max-width: 200px;
}

.auth-split-logo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.auth-split-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-split-heading h1 {
  margin: 0;
  padding: 0;
  font-weight: 700 !important;
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 1.875rem) !important;
  line-height: 1.25 !important;
  color: var(--text-text-heading, #08251c) !important;
  letter-spacing: normal;
}

.auth-split-heading p {
  margin: 0;
  padding: 0;
  font-weight: 400 !important;
  text-align: center;
  font-size: clamp(0.875rem, 3.2vw, 1rem) !important;
  line-height: 1.35 !important;
  color: var(--text-text-body, #666666) !important;
}

.auth-split-root form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Form — Html: gap-4 mb-6 mt-6 sm:mt-10 */
.auth-split-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.auth-split-forgot-row {
  display: flex;
  justify-content: center;
}

.auth-split-link {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: var(--secondary-secondary, #fe8819) !important;
  text-decoration: none !important;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.auth-split-link:hover {
  text-decoration: underline !important;
}

.auth-split-footer {
  text-align: center;
  color: var(--text-text-body, #666666);
  margin-top: 24px;
}

.auth-split-footer a,
.auth-split-footer .auth-split-link {
  color: var(--secondary-secondary, #fe8819) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Media column — stacked promo on mobile, full hero on desktop */
.auth-split-media {
  display: block;
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  order: 2;
  padding: 0 16px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.auth-split-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.auth-split-promo-wrap {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.auth-split-promo {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 18px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(8, 16, 28, 0.45);
  background-image: var(--auth-media-src);
  background-size: cover;
  background-position: center top;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.auth-split-promo-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
}

.auth-split-promo h2,
.auth-split-promo p {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  margin: 0;
}

.auth-split-promo h2 {
  font-size: clamp(1.15rem, 4vw, 1.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.auth-split-promo p {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Form controls — Html-ezyfiit style.css */
.auth-split-root .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-split-root .form-label {
  color: var(--input-input-label, #333333) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  margin: 0;
}

.auth-split-root .form-control {
  height: 48px !important;
  width: 100% !important;
  padding: 14px 16px !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 20px !important;
  color: var(--input-input-text, #000000) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff !important;
  border: 1px solid var(--border-border-default, #e3e2e2) !important;
  border-radius: 10px !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.auth-split-root .form-control:hover:not(:disabled):not(:focus):not(.is-invalid) {
  border-color: #c8c7c7 !important;
}

.auth-split-root .form-control:focus {
  border-color: var(--primary-primary, #38a6fc) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(56, 166, 252, 0.2) !important;
}

.auth-split-root .form-control::placeholder {
  color: var(--input-input-placeholder, #b4b2b2) !important;
  font-weight: 400;
  font-size: 14px;
  opacity: 1;
}

.auth-split-root .form-control.is-invalid {
  border-color: var(--color-states-color-error, #ef4444) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.auth-split-root .form-control.is-invalid:focus {
  border-color: var(--color-states-color-error, #ef4444) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.auth-split-root .form-error {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-states-color-error, #ef4444);
}

.auth-split-root .form-control-password-wrap {
  position: relative;
}

.auth-split-root .form-control-password-wrap .form-control {
  padding-right: 48px !important;
}

/* Html: absolute right-3 top-1.5 size-9 */
.auth-split-root .form-password-toggle {
  position: absolute;
  right: 12px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--input-input-placeholder, #b4b2b2);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  line-height: 1;
}

.auth-split-root .form-password-toggle:hover {
  color: var(--text-text-heading, #08251c);
}

.auth-split-root .form-password-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.auth-split-root .btn {
  padding: 12px 20px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 24px !important;
  text-align: center;
  align-items: center;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  border: none !important;
  width: 100% !important;
  min-width: 120px;
  height: 48px !important;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.auth-split-root .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.auth-split-root .btn-primary {
  background-color: var(--button-btn-primary-bg, #38a6fc) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 4px 0 rgba(56, 166, 252, 0.3) !important;
}

.auth-split-root .btn-primary:hover:not(:disabled) {
  background-color: var(--primary-700, #176fde) !important;
  box-shadow: 0 6px 14px 0 rgba(56, 166, 252, 0.35) !important;
  transform: translateY(-1px);
}

.auth-split-root .btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px 0 rgba(56, 166, 252, 0.28) !important;
}

.auth-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes auth-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Password strength (reset page) */
.auth-password-strength {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #eef1f5;
}

.auth-password-strength-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-password-strength-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e5e9ef;
  overflow: hidden;
}

.auth-password-strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.auth-password-strength-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  min-width: 58px;
  text-align: center;
  letter-spacing: 0.02em;
}

.auth-password-reqs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 10px;
}

.auth-password-req {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.auth-password-req-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-password-req.met {
  color: #15803d;
}

.auth-password-req.met .auth-password-req-dot {
  background: #dcfce7;
  color: #15803d;
}

.auth-password-req.unmet {
  color: #9ca3af;
}

.auth-password-req.unmet .auth-password-req-dot {
  background: #f3f4f6;
  color: #9ca3af;
}

.auth-otp-inputs {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 8px);
  flex-wrap: nowrap;
}

.auth-otp-inputs input {
  width: min(44px, 12vw) !important;
  height: 48px !important;
  min-width: 36px;
  flex: 1 1 0;
  max-width: 48px;
  border: 1px solid var(--border-border-default, #e3e2e2) !important;
  border-radius: 10px !important;
  text-align: center;
  font-size: 18px !important;
  font-weight: 600 !important;
  outline: none !important;
  background: #fff !important;
}

.auth-otp-inputs input:focus {
  border-color: var(--primary-primary, #38a6fc) !important;
  box-shadow: 0 0 0 3px rgba(56, 166, 252, 0.2) !important;
}

@media (min-width: 480px) {
  .auth-password-reqs {
    grid-template-columns: 1fr 1fr;
  }

  .auth-split-root .form-control {
    font-size: 14px !important;
  }
}

@media (min-width: 640px) {
  .auth-split-logo {
    margin-bottom: 40px;
    max-width: 250px;
  }

  .auth-split-form {
    margin-top: 40px;
  }

  .auth-split-footer {
    margin-top: 40px;
  }

  .auth-split-promo {
    padding: 22px 24px;
    min-height: 200px;
  }
}

/* Desktop / tablet landscape: image left, form right (screenshot) */
@media (min-width: 900px) {
  html:has(.auth-split-root),
  body:has(.auth-split-root) {
    overflow: hidden !important;
    height: 100% !important;
  }

  body:has(.auth-split-root) #root {
    height: 100% !important;
    overflow: hidden !important;
  }

  .auth-split-root {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .auth-split-main {
    overflow: hidden;
    min-height: 0;
    height: 100%;
  }

  .auth-split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
  }

  .auth-split-media {
    display: block;
    order: 1;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  .auth-split-form-col {
    order: 2;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(40px, 6vw, 120px) clamp(24px, 4vw, 80px) 40px;
    align-items: center;
  }

  .auth-split-media-img {
    display: block;
  }

  .auth-split-promo-wrap {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    padding: 0;
  }

  .auth-split-promo {
    width: calc(100% - 40px);
    max-width: 560px;
    min-height: 0;
    padding: 18px 20px;
    background-image: none;
    background: rgba(8, 16, 28, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .auth-split-promo-overlay {
    display: none;
  }

  .auth-split-logo {
    margin-bottom: 48px;
  }

  .auth-split-heading h1 {
    font-size: clamp(1.75rem, 2.4vw, 2.25rem) !important;
  }

  .auth-split-heading p {
    font-size: clamp(0.95rem, 1.4vw, 1.125rem) !important;
  }

  .auth-split-footer {
    margin-top: 48px;
  }
}

@media (min-width: 1024px) {
  .auth-split-logo {
    max-width: 300px;
    margin-bottom: 56px;
  }

  .auth-split-promo-wrap {
    bottom: 30px;
  }

  .auth-split-promo {
    width: calc(100% - 64px);
    padding: 20px 22px;
  }

  .auth-split-footer {
    margin-top: 56px;
  }
}

@media (min-width: 1280px) {
  .auth-split-promo h2 {
    font-size: 1.65rem !important;
  }

  .auth-split-promo p {
    font-size: 0.95rem !important;
  }
}

@media (min-width: 1536px) {
  .auth-split-promo {
    width: calc(100% - 100px);
    max-width: 640px;
    padding: 24px 28px;
  }

  .auth-split-promo h2 {
    font-size: 1.75rem !important;
  }
}

/* Short laptop / landscape phone: keep form usable */
@media (min-width: 900px) and (max-height: 760px) {
  .auth-split-form-col {
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .auth-split-logo {
    margin-bottom: 24px;
    max-width: 200px;
  }

  .auth-split-form {
    margin: 16px 0;
  }

  .auth-split-heading h1 {
    font-size: 1.6rem !important;
  }

  .auth-split-promo {
    padding: 14px 16px;
    gap: 6px;
  }

  .auth-split-promo h2 {
    font-size: 1.15rem !important;
  }

  .auth-split-promo p {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 899px) {
  .auth-split-media-img {
    display: none;
  }
}
