/* Shared sign-in layout */
.al-page,.al-page *{box-sizing:border-box}
.al-page{font-family:'Helvetica Neue',Arial,sans-serif;color:#182b34;background:#f8f9fb;min-height:100vh;max-width:1536px;width:calc(100% - 96px);margin:auto;padding-bottom:20px}
.al-page [hidden]{display:none!important}
.al-page button,.al-page input{font-family:inherit}
.al-page button{cursor:pointer}
.al-header{display:flex;align-items:center;justify-content:space-between;gap:20px;height:112px;margin:0}
.al-logo{width:174px;height:auto;display:block}
.al-return{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid #e3e9ee;border-radius:40px;padding:13px 22px;color:#182b34;text-decoration:none;font-size:12px;font-weight:500;transition:background .3s,color .3s,border-color .3s}
.al-return svg{width:16px;height:16px;transition:transform .3s}
.al-return:hover{background:#4261ee;border-color:#4261ee;color:#fff}
.al-return:hover svg{transform:translateX(-4px)}
.al-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;min-height:590px;padding:0;max-width:none;margin:0}
.al-photo{position:relative;overflow:hidden;border-radius:29px;background:#9bcce2;min-width:0}
.al-photo>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 50%;transition:transform 1.2s cubic-bezier(.22,1,.36,1)}
.al-photo:hover>img{transform:scale(1.03)}
.al-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 50%,#0d2b3dd0 100%);pointer-events:none}
.al-photo-copy{position:absolute;bottom:40px;left:40px;right:40px;z-index:1;color:#fff}
.al-photo-copy h2{font-size:clamp(34px,3.96vw,57px);font-weight:400;letter-spacing:-2.6px;line-height:1.05;margin:0}
.al-form-panel{border-radius:28px;background:#fff;padding:32px 40px;min-width:0;display:flex;flex-direction:column;border:1px solid #edf0f4}
.al-title{font-weight:400;font-size:42px;letter-spacing:-1.9px;line-height:1.02;margin:0 0 18px;white-space:nowrap}
.al-description{font-size:14px;color:#536672;line-height:1.6;margin:0 0 24px}
.al-label{font-size:12px;font-weight:500;display:block;margin-bottom:8px}
.al-field{position:relative}
.al-field svg{position:absolute;left:16px;top:16px;width:18px;height:18px;color:#728086;pointer-events:none}
.al-input{width:100%;height:49px;border:1px solid #dce5eb;background:#fff;border-radius:14px;padding:14px 16px 14px 46px;color:#182b34;font-size:13px;transition:border-color .25s,box-shadow .25s}
.al-input::placeholder{color:#657784}
.al-input:focus{outline:0;border-color:#4261ee;box-shadow:0 0 0 4px #4261ee1f}
.al-input[aria-invalid=true]{border:1px solid #b03345}
.al-help{color:#536672;line-height:1.5;font-size:12px;margin:8px 0 18px}
.al-primary{align-self:flex-start;position:relative;overflow:hidden;isolation:isolate;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#4261ee;border:1px solid #4261ee;border-radius:40px;padding:6px 7px 6px 22px;width:auto;min-width:210px;color:#fff;font-size:12px;font-weight:500;min-height:48px;box-shadow:0 14px 26px -8px #4261ee66;transition:box-shadow .4s,color .5s ease .1s,border-color .5s}
.al-primary:before{content:'';position:absolute;z-index:-1;inset:0;background:#f9fafb;translate:-101% 0;border-radius:inherit;transition:translate .6s cubic-bezier(.22,1,.36,1)}
.al-primary:hover{color:#182b34;border-color:#f9fafb}
.al-primary:hover:before{translate:0 0}
.al-arrow{border:1px solid currentColor;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex:none;transition:background .4s,border-color .4s,color .4s}
.al-arrow svg{width:16px;height:16px}
.al-primary:hover .al-arrow{background:#4261ee;border-color:transparent;color:#fff}
.al-primary:active{scale:.985}
.al-after{color:#536672;line-height:1.5;font-size:12px;margin:16px 0 22px}
.al-access{display:flex;align-items:center;gap:14px;background:#eaf5f2;border-radius:20px;padding:16px 18px;margin-top:auto;transition:transform .4s cubic-bezier(.22,1,.36,1)}
.al-access:hover{transform:translateY(-3px)}
.al-lock{display:grid;place-items:center;background:#ffffffb8;width:44px;height:44px;border-radius:50%;flex:none}
.al-lock svg{width:22px;height:22px}
.al-access strong{display:block;font-size:13px;font-weight:500;margin-bottom:4px}
.al-access p{font-size:11px;color:#5b7788;line-height:1.45;margin:0}
.al-footer{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;flex:none;gap:12px 20px;min-height:76px;margin-top:12px;padding:12px 28px;border:1px solid #fff;border-radius:28px;background:#fff;font-size:13px;color:#536672}
.al-flogo{flex:none;display:block}
.al-flogo img{display:block;width:auto;height:48px;max-width:100%;object-fit:contain}
.al-fcopy{margin:0 auto 0 2px}
.al-fbtns{display:flex;flex-wrap:wrap;gap:10px}
.al-fbtn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid #dfe6ef;border-radius:999px;background:#fff;color:#182b34;text-decoration:none;font-size:13px;line-height:1.4;white-space:nowrap;transition:background-color .2s,color .2s,border-color .2s}
.al-form-panel .al-form-content{width:100%;min-width:0;flex:none;margin-block:0}
.al-form-panel .al-form-content .al-access{margin-top:28px}
@media(hover:hover){.al-fbtn:hover{background:#4261ee;border-color:#4261ee;color:#fff}}
@media(min-width:861px) and (max-height:860px){.al-footer{min-height:60px;padding:8px 24px;margin-top:8px;border-radius:24px}.al-flogo img{height:38px}}
@media(min-width:861px) and (max-height:700px){.al-footer{min-height:52px;padding:6px 22px}.al-flogo img{height:32px}}
@media(max-width:760px){.al-page .al-footer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;padding:16px 18px}.al-flogo img{height:36px}.al-fcopy{margin:0;justify-self:end;text-align:right;font-size:12px}.al-fbtns{grid-column:1/-1}.al-fbtn{flex:1;white-space:normal;text-align:center}}
.al-error{color:#a5293b;font-size:12px;line-height:1.45;margin:0 0 12px}
.al-error:empty{display:none}
.al-page a:focus-visible,.al-page button:focus-visible,.al-page input:focus-visible{outline:3px solid #4261ee;outline-offset:4px}
@media(max-width:1150px){.al-page{width:calc(100% - 48px)}.al-title{font-size:36px}.al-form-panel{padding:28px}}
@media(max-width:860px){.al-layout{grid-template-columns:1fr;height:auto}.al-form-panel{order:0}.al-photo{order:1;min-height:380px}.al-page{width:calc(100% - 36px)}.al-header{height:84px}.al-logo{width:137px}.al-title{white-space:normal;font-size:34px}.al-photo-copy{left:24px;right:24px;bottom:28px}.al-photo-copy h2{font-size:34px}.al-footer{flex-direction:column;gap:6px}}
@media(prefers-reduced-motion:reduce){.al-page *{transition:none!important;animation:none!important}}

.al-form-panel form{display:flex;flex-direction:column;align-items:flex-start}.al-form-panel form .al-field,.al-form-panel form .al-label{width:100%}

.al-code{width:100%;min-width:0;margin:0;padding:0;border:0}
.al-code .al-label{padding:0;font-size:14px}
.al-code-digits{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(4px,1.1vw,10px);max-width:374px}
.al-code-digit{width:100%;min-width:0;height:clamp(46px,8vw,60px);border:1px solid #c5d1da;border-radius:12px;padding:0;background:#fff;color:#182b34;text-align:center;font-size:clamp(20px,4vw,26px);font-variant-numeric:tabular-nums}
.al-code-digit[aria-invalid=true]{border-color:#a5293b;background:#fff6f7}
.al-page .al-code-digit:focus{outline:2px solid #4261ee;outline-offset:-2px}
.al-code-digit[readonly]{background:#edf0f7}
.al-form-panel form[data-step=code] .al-help,.al-auth-status{font-size:13px;color:#4a6474;overflow-wrap:anywhere}
.al-auth-status{margin:0 0 12px}
.al-auth-status:empty{margin:0}
.al-primary:disabled{cursor:wait}
.al-restart{border:0;padding:0;background:none;color:#2947bc;text-decoration:underline;text-underline-offset:3px;font-size:13px}
.al-remember{display:flex;align-items:center;gap:8px;margin:12px 0 18px;font-size:13px;color:#4a6474}
.al-remember input{accent-color:#4261ee;width:16px;height:16px;margin:0}
.al-after:has(.al-restart){display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.al-after p{margin:0;flex-basis:100%}

.al-page .al-input:focus-visible{outline:none;box-shadow:0 0 0 3px #4261ee26}

/* The email's dashed route motif fills only the space outside the form. */
.al-ornament{position:relative;flex:1 1 0;min-height:0;overflow:hidden;pointer-events:none;user-select:none}
.al-ornament .al-route{position:absolute;inset:0;width:100%;height:100%;max-height:150px;margin:auto;overflow:visible;opacity:.78}
.al-ornament--bottom .al-route{transform:rotate(180deg);opacity:.6}
.al-route-coast{stroke:#d8e8e3;stroke-width:1.5}
.al-route-line{stroke:#b2c1ff;stroke-width:2;stroke-dasharray:8 9}
.al-route-stop{fill:#fff;stroke:#7189eb;stroke-width:2}
.al-route-star{fill:#7189eb;stroke:none}
.al-route-traveller{fill:#4261ee;stroke:#fff;stroke-width:2;offset-path:path('M-24 108C54 108 80 44 154 44S272 132 352 92S500 14 610 48');offset-rotate:0deg;animation:al-follow-route 12s linear infinite}
.al-ornament--bottom .al-route-traveller{animation-delay:-6s}
@keyframes al-follow-route{from{offset-distance:0%}to{offset-distance:100%}}
@media(max-width:860px){.al-ornament{display:none}}
@media(max-height:850px){.al-ornament .al-route{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.al-route-traveller{animation:none;offset-distance:55%}}
html.a11y-motion .al-route-traveller{animation:none;offset-distance:55%}
@media(forced-colors:active){.al-ornament{visibility:hidden}}

/* Original footer button treatment, shared by both sign-in pages. */
.al-fbtn{position:relative;overflow:hidden;isolation:isolate;z-index:1;box-shadow:0 10px 24px -14px #2a4a6a55;transition:color .5s ease .1s,border-color .5s ease,box-shadow .4s cubic-bezier(.22,.72,.2,1)}
.al-fbtn::before{content:'';position:absolute;z-index:-1;width:100%;aspect-ratio:1;left:-100%;top:50%;translate:0 -50%;border-radius:50%;background:#4261ee;transition:all .7s ease}
@media(hover:hover){.al-fbtn:hover{background:#fff;color:#fff;border-color:#4261ee;box-shadow:0 14px 26px -8px #4261ee40;transform:none}.al-fbtn:hover::before{left:0;scale:1.5}}

/* Shared responsive viewport layout for both sign-in pages. */
@media (min-width: 861px) and (min-height: 520px) {
  .al-page { height: 100dvh; min-height: 0; display: flex; flex-direction: column; padding-bottom: 12px; }
  .al-header { flex: none; height: min(112px, 11vh); min-height: 60px; padding: 0; margin: 0; }
  .al-logo { height: min(70px, calc(11vh - 14px)); min-height: 44px; width: auto; }
  .al-layout { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .al-form-panel { min-height: 0; overflow: auto; justify-content: flex-start; padding: clamp(20px, 3vh, 36px) clamp(24px, 3.4vw, 56px); }
  .al-eyebrow { margin-bottom: clamp(8px, 2vh, 24px); }
  .al-title { font-size: clamp(28px, 5.2vh, 56px); margin-bottom: clamp(6px, 1.6vh, 20px); }
  .al-description { font-size: clamp(12px, 1.5vh, 16px); margin-bottom: clamp(10px, 2.8vh, 34px); }
  .al-label { font-size: clamp(12px, 1.5vh, 15px); }
  .al-input { height: clamp(44px, 5.6vh, 62px); font-size: clamp(13px, 1.65vh, 16px); }
  .al-field svg { top: calc(50% - 9px); }
  .al-help, .al-after { font-size: clamp(11px, 1.35vh, 14px); }
  .al-primary { min-height: clamp(44px, 5.2vh, 58px); font-size: clamp(12px, 1.5vh, 15px); }
  .al-access { margin-top: auto; padding-block: clamp(10px, 1.8vh, 18px); }
  .al-access strong { font-size: clamp(13px, 1.5vh, 16px); }
  .al-photo-copy { bottom: clamp(20px, 5vh, 56px); left: clamp(24px, 3.4vw, 56px); }
  .al-photo-copy h2 { font-size: clamp(30px, 6.2vh, 68px); }
}
@media (min-width: 861px) and (max-height: 860px) {
  .al-page { padding-bottom: 8px; }
}
@media (min-width: 861px) and (max-height: 780px) {
  .al-header { height: max(58px, 9vh); min-height: 58px; }
  .al-logo { height: 44px; min-height: 0; }
}
@media (min-width: 861px) and (max-height: 700px) {
  .al-description, .al-eyebrow { display: none; }
}

/* Keep member authentication readable without triggering iOS input zoom. */
#register-form .consent,
#register-form .consent .opt { font-size: 13px; line-height: 1.5; }
#register-form .consent > span { min-width: 0; overflow-wrap: anywhere; }
#register-form .consent input { flex-shrink: 0; }
@media (max-width: 900px) {
  #login-form .al-input,
  #register-form .field input,
  #register-form .field select,
  body:has(#register-form) .op-select-search { font-size: 16px; }
}
@media (min-width: 701px) and (max-width: 900px) {
  #app .auth-layout:has(#register-form) { grid-template-columns: minmax(0, 1fr); }
  #app .auth-layout:has(#register-form) .auth-photo { height: 320px; min-height: 0; }
  #app .auth-layout:has(#register-form) .auth-photo > div { left: 32px; right: 32px; bottom: 28px; }
  #app .auth-layout:has(#register-form) .auth-photo h2 { font-size: 40px; line-height: 1.08; margin: 14px 0; }
  #app .auth-layout:has(#register-form) .auth-photo p { font-size: 13px; line-height: 1.5; margin: 0; }
}

