/* =============================================================================
 * DriveX — sign-in experience (17 Nov 2026)
 *
 * A polished, consistent sign-in screen for the account popup. Scoped entirely
 * to #alOtpModal, so nothing on the homepage or any other part of the site is
 * affected. Brand: navy #07367A, orange #F96501, white.
 *
 * Rules that shape it:
 *  - one centred column, one rhythm (8 px grid), no boxes inside boxes;
 *  - 16 px inputs so iPhones do not zoom the page on focus;
 *  - 48 px+ touch targets; visible focus; errors that do not move the button.
 * ========================================================================== */
#alOtpModal .al-modal{
  background:#fff !important; color:#0D1B2E;
  width:min(100%, 420px) !important; max-width:420px !important;
  padding:20px 22px 24px !important; border-radius:20px !important;
  box-shadow:0 24px 60px rgba(4,23,56,.30) !important;
  max-height:calc(100vh - 32px) !important; max-height:calc(100dvh - 32px) !important;
  overflow-y:auto; -webkit-overflow-scrolling:touch; box-sizing:border-box;
}
#alOtpModal.al-modal-overlay{ padding:16px !important; background:rgba(4,17,40,.62) !important; }
@media (max-height:600px){ #alOtpModal.al-modal-overlay.open{ align-items:flex-start !important; } }

/* Close + Back share one row and one size. */
#alOtpModal .al-modal-close{
  position:absolute !important; top:14px !important; right:14px !important; left:auto !important;
  width:40px !important; height:40px !important; border-radius:12px !important; border:0 !important;
  background:transparent !important; color:#5B6B82 !important; display:flex !important; align-items:center; justify-content:center;
  font-size:20px !important; cursor:pointer; z-index:2;
}
#alOtpModal .al-modal-close:hover, #alOtpModal .al-modal-close:focus-visible{ background:#EEF3FB !important; color:#07367A !important; }
#alOtpModal .al-modal-back, #alOtpModal .dxsi-back{
  display:inline-flex !important; align-items:center; gap:6px; height:40px; padding:0 10px 0 6px !important; margin:-6px 0 4px -6px !important;
  border:0 !important; background:transparent !important; color:#5B6B82 !important; font:600 14px/1 inherit !important; border-radius:12px; cursor:pointer;
}
#alOtpModal .al-modal-back:hover, #alOtpModal .dxsi-back:hover, #alOtpModal .dxsi-back:focus-visible{ background:#EEF3FB !important; color:#07367A !important; }

/* Shared heading rhythm for every step of the popup. */
#alOtpModal .al-modal-logo{ margin:6px auto 16px !important; text-align:center; }
#alOtpModal .al-modal-title{ text-align:center !important; font-size:22px !important; line-height:1.25 !important; font-weight:700 !important; color:#0D1B2E !important; margin:0 0 6px !important; letter-spacing:-.01em; }
#alOtpModal .al-modal-sub{ text-align:center !important; font-size:14.5px !important; line-height:1.5 !important; color:#5B6B82 !important; margin:0 0 20px !important; }

/* ---- the sign-in step ---------------------------------------------------- */
#alOtpModal .dxsi-brand{ display:flex; justify-content:center; margin:2px 0 16px; }
/* The logo artwork has white lettering, so it always sits on the brand navy. */
#alOtpModal .dxsi-brand img{ height:44px; width:auto; max-width:200px; display:block; box-sizing:content-box; padding:8px 16px; border-radius:14px; background:#041A3A; box-shadow:0 6px 16px rgba(4,26,58,.22); }
#alOtpModal .dxsi-brand .dxsi-word{ font:800 24px/1 inherit; color:#07367A; } #alOtpModal .dxsi-brand .dxsi-word span{ color:#F96501; }
#alOtpModal .dxsi-field{ margin:0 0 16px; text-align:left; }
#alOtpModal .dxsi-labelrow{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
#alOtpModal .dxsi-field label{ display:block; font-size:13.5px !important; font-weight:600 !important; color:#243447 !important; margin:0 0 7px !important; letter-spacing:0 !important; text-transform:none !important; }
#alOtpModal .dxsi-input{
  display:block; width:100% !important; height:52px !important; box-sizing:border-box; margin:0 !important;
  padding:0 14px !important; font-size:16px !important; line-height:1.2 !important; color:#0D1B2E !important;
  background:#fff !important; border:1.5px solid #CBD5E3 !important; border-radius:12px !important; box-shadow:none !important;
  transition:border-color .15s ease, box-shadow .15s ease; -webkit-appearance:none; appearance:none;
}
#alOtpModal .dxsi-input::placeholder{ color:#94A3B8; opacity:1; }
#alOtpModal .dxsi-input:hover{ border-color:#9FB0C7 !important; }
#alOtpModal .dxsi-input:focus{ border-color:#07367A !important; box-shadow:0 0 0 4px rgba(7,54,122,.14) !important; outline:0 !important; }
#alOtpModal .dxsi-field.has-error .dxsi-input{ border-color:#DC2626 !important; }
#alOtpModal .dxsi-pw{ position:relative; }
#alOtpModal .dxsi-pw .dxsi-input{ padding-right:54px !important; }
#alOtpModal .dxsi-eye{
  position:absolute; top:4px; right:4px; width:44px; height:44px; border:0; background:transparent; color:#5B6B82;
  border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer; padding:0;
}
#alOtpModal .dxsi-eye:hover, #alOtpModal .dxsi-eye:focus-visible{ background:#EEF3FB; color:#07367A; outline:0; }
#alOtpModal .dxsi-forgot{ border:0; background:none; padding:4px 0; margin:0; font:600 13.5px/1.2 inherit; color:#07367A; cursor:pointer; text-decoration:none; white-space:nowrap; }
#alOtpModal .dxsi-forgot:hover, #alOtpModal .dxsi-forgot:focus-visible{ color:#F96501; text-decoration:underline; outline:0; }

/* Message area: reserved space, so an error never pushes the button around. */
/* The message takes the place of the one-line subtitle, in a slot of fixed height. */
#alOtpModal .dxsi-slot{ min-height:58px; margin:0 0 12px; display:flex; align-items:center; justify-content:center; }   /* room for a two-line message */
#alOtpModal .dxsi-slot .al-modal-sub{ margin:0 !important; }
#alOtpModal .dxsi-slot.has-msg .al-modal-sub{ display:none; }
#alOtpModal .dxsi-field:last-of-type{ margin-bottom:22px; }
#alOtpModal .dxsi-error{
  display:none; width:100%; box-sizing:border-box; align-items:flex-start; gap:8px; margin:0 !important;
  padding:9px 12px !important; border-radius:10px !important; background:#FEF2F2 !important; border:1px solid #FECACA !important;
  color:#991B1B !important; font-size:13px !important; font-weight:600 !important; line-height:1.4 !important; text-align:left !important;
}
#alOtpModal .dxsi-error.is-on{ display:flex !important; }
#alOtpModal .dxsi-error::before{ content:"!"; flex:0 0 18px; height:18px; border-radius:50%; background:#DC2626; color:#fff; font:700 12px/18px system-ui,sans-serif; text-align:center; margin-top:1px; }
#alOtpModal .dxsi-error.is-ok{ background:#ECFDF3 !important; border-color:#BBF7D0 !important; color:#14532D !important; }
#alOtpModal .dxsi-error.is-ok::before{ content:"✓"; background:#15803D; }

#alOtpModal .dxsi-submit{
  display:flex !important; align-items:center; justify-content:center; gap:10px; width:100% !important; height:52px !important; margin:0 !important; padding:0 18px !important;
  border:0 !important; border-radius:12px !important; background:#07367A !important; color:#fff !important;
  font:700 16px/1 inherit !important; letter-spacing:.01em; cursor:pointer; box-shadow:0 6px 16px rgba(7,54,122,.22) !important;
  transition:background .15s ease, transform .08s ease, box-shadow .15s ease;
}
#alOtpModal .dxsi-submit:hover{ background:#052A5F !important; }
#alOtpModal .dxsi-submit:active{ transform:translateY(1px); box-shadow:0 3px 8px rgba(7,54,122,.2) !important; }
#alOtpModal .dxsi-submit:focus-visible{ outline:0; box-shadow:0 0 0 4px rgba(249,101,1,.35) !important; }
#alOtpModal .dxsi-submit[disabled]{ opacity:.85; cursor:progress; }
#alOtpModal .dxsi-submit.is-done{ background:#15803D !important; box-shadow:none !important; }
#alOtpModal .dxsi-spin{ width:18px; height:18px; border-radius:50%; border:2.5px solid rgba(255,255,255,.35); border-top-color:#fff; animation:dxsiSpin .7s linear infinite; flex:0 0 auto; }
@keyframes dxsiSpin{ to{ transform:rotate(360deg); } }
#alOtpModal .dxsi-alt{ margin:18px 0 0 !important; text-align:center; font-size:14px; color:#5B6B82; }
#alOtpModal .dxsi-alt button{ border:0; background:none; padding:4px 2px; font:700 14px/1.2 inherit; color:#F96501; cursor:pointer; }
#alOtpModal .dxsi-alt button:hover, #alOtpModal .dxsi-alt button:focus-visible{ text-decoration:underline; outline:0; }

/* Success step */
#alOtpModal .dxsi-done{ padding:18px 0 10px; text-align:center; }
#alOtpModal .dxsi-done-ic{ width:64px; height:64px; margin:0 auto 14px; border-radius:50%; background:#ECFDF3; color:#15803D; display:flex; align-items:center; justify-content:center; font-size:32px; }

@media (max-width:360px){
  #alOtpModal .al-modal{ padding:16px 16px 20px !important; border-radius:16px !important; }
  #alOtpModal .al-modal-close{ top:10px !important; right:8px !important; }
  #alOtpModal .al-modal-title{ font-size:20px !important; }
  #alOtpModal .dxsi-labelrow{ flex-wrap:wrap; }
}
@media (min-width:768px){ #alOtpModal .al-modal{ padding:26px 30px 30px !important; } #alOtpModal .al-modal-close{ top:20px !important; right:22px !important; } }
@media (prefers-reduced-motion:reduce){ #alOtpModal .dxsi-spin{ animation-duration:1.6s; } #alOtpModal .dxsi-submit, #alOtpModal .dxsi-input{ transition:none; } }
