/* IRCC passwordless login: canonical OTP stage styles.
   This stylesheet owns the login-stage controls only.  The shared app.css
   continues to own the original two-column brand card, arcs, and illustration.
*/
body.auth-page .auth-form--passwordless { min-width:0; }
body.auth-page .auth-form--passwordless > h2 {
  font-size:26px!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
  margin:0 0 6px!important;
}
body.auth-page .auth-form--passwordless > .lead {
  font-size:12px!important;
  line-height:1.45!important;
  margin:0 0 17px!important;
}
body.auth-page .auth-form--passwordless .auth-social-grid {
  gap:9px!important;
  margin:0 0 12px!important;
}
body.auth-page .auth-form--passwordless .auth-social-btn {
  height:42px!important;
  min-height:42px!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
}
body.auth-page .auth-form--passwordless .auth-divider {
  margin:0 0 14px!important;
  font-size:10px!important;
}
body.auth-page .auth-form--passwordless .auth-legal {
  margin-top:19px!important;
}

.auth-otp-stage {
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.auth-otp-form {
  display:flex;
  flex-direction:column;
  gap:13px;
  width:100%;
  margin:0!important;
}
body.auth-page .auth-form--passwordless .auth-otp-form .field {
  display:flex;
  flex-direction:column;
  gap:7px!important;
  margin:0!important;
}
body.auth-page .auth-form--passwordless .auth-otp-form .field label {
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:700!important;
  color:#535970!important;
}
body.auth-page .auth-form--passwordless .auth-otp-form .auth-input-wrap input {
  width:100%;
  min-width:0;
  min-height:45px!important;
  height:45px!important;
  font-size:13px!important;
  line-height:1.35!important;
  letter-spacing:0;
  background:#fbfbff;
  border-color:#e3e6f1;
  border-radius:11px!important;
}
body.auth-page .auth-form--passwordless .auth-otp-form .auth-input-wrap input::placeholder {
  color:#9298ac;
  font-size:12px!important;
}
body.auth-page .auth-form--passwordless .auth-otp-form .primary-btn {
  width:100%;
  min-height:45px!important;
  height:45px!important;
  margin:0!important;
  border-radius:11px!important;
  color:#fff!important;
  border-color:transparent!important;
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:0;
}
body.auth-page .auth-form--passwordless .auth-otp-form .primary-btn svg,
body.auth-page .auth-form--passwordless .auth-otp-form .primary-btn i {
  width:17px!important;
  height:17px!important;
}
.auth-otp-notice {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 11px;
  border:1px solid #e1dffc;
  background:#f6f5ff;
  border-radius:10px;
  color:#5b5687;
  font-size:11px;
  font-weight:550;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.auth-otp-notice-icon {
  width:25px;
  height:25px;
  flex:0 0 25px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#ebe8ff;
  color:#684cf3;
}
.auth-otp-notice-icon svg,.auth-otp-notice-icon i {width:14px;height:14px;}
.auth-otp-meta {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px 10px;
  color:#81879e;
  font-size:10.5px;
  line-height:1.35;
}
.auth-otp-meta span {display:inline-flex;align-items:center;gap:5px;}
.auth-otp-meta svg,.auth-otp-meta i {width:13px;height:13px;}
.auth-otp-helper {
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:11px!important;
  font-weight:450;
  line-height:1.5!important;
  color:#868ba0!important;
  margin:0!important;
}
.auth-otp-helper svg,.auth-otp-helper i {
  flex:0 0 15px;
  width:15px;
  height:15px;
  color:#8f81df;
  margin-top:1px;
}
.auth-otp-restart-form { width:100%;margin:0!important; }
.auth-otp-secondary {
  width:100%;
  min-height:39px;
  padding:9px 13px;
  border:1px solid #e1e5f0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#626b84!important;
  font-family:inherit;
  font-size:11.5px;
  font-weight:700;
  line-height:1.35;
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.auth-otp-secondary:hover {background:#f8f7ff;border-color:#d2c9fb;color:#6147db;}
.auth-otp-secondary:focus-visible {
  outline:3px solid rgba(106,77,238,.24);
  outline-offset:2px;
}
@media(max-width:580px) {
  /* The OTP confirmation step is taller than the old password form.
     Let the existing mobile card grow naturally rather than clip the footer. */
  body.auth-page {
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  body.auth-page .auth-shell {
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.auth-page .auth-form--passwordless {
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    flex:1 0 auto!important;
    padding-bottom:max(28px,env(safe-area-inset-bottom))!important;
  }
}
@media(max-width:430px) {
  body.auth-page .auth-form--passwordless .auth-social-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.auth-page .auth-form--passwordless .social-label-full {display:none!important;}
  body.auth-page .auth-form--passwordless .social-label-short {display:inline!important;}
  body.auth-page .auth-form--passwordless > h2 {font-size:25px!important;}
  .auth-otp-meta {justify-content:flex-start;}
}
@media (min-width:821px) and (max-height:760px) {
  /* Keep request and verify steps inside the same laptop-sized card. */
  body.auth-page:has(.auth-otp-stage) .auth-shell { min-height:510px; }
}
@media (min-width:821px) and (max-height:700px) {
  body.auth-page .auth-form--passwordless > .lead {margin-bottom:11px!important;}
  body.auth-page .auth-form--passwordless .auth-social-grid {margin-bottom:8px!important;}
  body.auth-page .auth-form--passwordless .auth-divider {margin-bottom:10px!important;}
  body.auth-page .auth-form--passwordless .auth-legal {margin-top:12px!important;}
  .auth-otp-stage {gap:8px;}
  .auth-otp-form {gap:9px;}
}
