/* An unobstructed medical image with one quiet, finite logo reveal. */
.auth-layout { grid-template-columns: minmax(400px,.85fr) minmax(0,1.15fr); }
.auth-panel { position: relative; background: #fcfdff; border-right: 1px solid #dfe6f0; z-index: 2; }
.auth-card h1 { font-size: 35px; letter-spacing: -.045em; font-weight: 400; }
.auth-card .intro { font-size: 13px; }
.auth-emblem { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 24px; }
.auth-emblem .auth-logo { width: 76px; height: 76px; margin: 0; mix-blend-mode: multiply; }
.auth-card .primary-button { background: #3d6be4; border: 1px solid transparent; box-shadow: none; transform: none; }
.auth-card .primary-button:hover { background: #315dcc; transform: none; }
.auth-card .primary-button:active { background: #294fad; transform: none; box-shadow: none; }
.auth-card .secondary-button { background: transparent; box-shadow: none; transform: none; }
.auth-card .secondary-button:hover { background: #527ce50a; }
.auth-card input:not([type=checkbox]):not([type=hidden]) { transition: border-color .2s; }
:root[data-theme=dark] .auth-panel { background: #0c1726; border-color: #263c56; }
:root[data-theme=dark] .auth-emblem img { mix-blend-mode: normal; border-radius: 18px; }
:root[data-theme=dark] .auth-card .primary-button { background: #416de3; }
:root[data-theme=dark] .auth-card .primary-button:hover { background: #507bec; }
:root[data-theme=dark] .auth-card .secondary-button { background: transparent; box-shadow: none; }
:root[data-theme=dark] .auth-card .secondary-button:hover { background: #16263a; }

.auth-visual.medical-opening { position: relative; overflow: hidden; isolation: isolate; min-height: 100dvh; background: #102346; color: #dcecff; }
.medical-film { position: absolute; inset: 0; background: url('/assets/login-imaging-clean.png') center/cover no-repeat; animation: imaging-focus .75s ease-out both; }
.medical-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.medical-emblem { position: relative; display: grid; place-items: center; width: clamp(260px,32vw,460px); aspect-ratio: 1; max-width: 90%; }
.medical-emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.medical-logo-reveal { width: 92%; opacity: .5; animation: logo-focus 1.65s .45s cubic-bezier(.2,.65,.3,1) both; }
.medical-logo-reveal img { display: block; width: 100%; height: auto; filter: url(#medical-white-logo); }
.medical-subtitle { margin: 34px 0 0; color: #e0ebfa; font-size: 13px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; text-align: center; animation: caption-reveal 1.2s .85s ease-out both; }
@keyframes imaging-focus { from { opacity: 0; filter: blur(7px); transform: scale(1.025); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes logo-focus { from { opacity: 0; filter: blur(20px); transform: scale(.86); } to { opacity: .5; filter: blur(0); transform: scale(1); } }
@keyframes caption-reveal { 0%,30% { opacity: 0; } 100% { opacity: 1; } }

/* Keep the floating bar, with flat controls and no extruded icon surfaces. */
@media screen {
  .models-page .model-section-heading > h6 i, .directory-section > h2 > i { transform: none; box-shadow: none; }
  body.contacts-page .directory-card-heading { background: linear-gradient(125deg,var(--directory-tint),var(--directory-bg) 85%); }
}
@media(min-width:801px) and (max-height:800px) { .auth-emblem { width: 54px; height: 54px; margin-bottom: 19px; }.auth-emblem .auth-logo { width: 54px; height: 54px; }.auth-card h1 { font-size: 29px; }.medical-emblem { width: clamp(240px,29vw,380px); }.medical-subtitle { margin-top: 24px; } }
@media(max-width:1100px) { .auth-panel { padding-inline: 34px; } }
@media(max-width:800px) { .auth-layout { grid-template-columns: 1fr; }.auth-visual.medical-opening { display: none; }.auth-panel { padding: 24px; border: 0; }.auth-card { padding: 34px 0; }.auth-card h1 { font-size: 31px; }.auth-emblem { width: 64px; height: 64px; }.auth-emblem .auth-logo { width: 64px; height: 64px; } }
@media(prefers-reduced-motion:reduce) { .medical-opening * { animation: none!important; }.auth-card button,.auth-card input { transition: none!important; } }
@media print { .medical-opening { display: none!important; } }

/* The sign-in form: calm fields, flat actions and a dedicated passkey entry. */
.auth-card:has(.login-form) { width: min(100%,370px); padding-block: 32px; --login-field: #f3f6fb; --login-stroke: #e2e8f1; --login-muted: #718097; --auth-muted: #69778c; }
.auth-card:has(.login-form) .auth-emblem { width: 64px; height: 64px; margin: 0 auto 22px; }
.auth-card:has(.login-form) .auth-logo { width: 64px; height: 64px; }
.auth-card:has(.login-form) h1 { font-size: clamp(30px,3vw,38px); line-height: 1.2; letter-spacing: -.045em; margin-bottom: 34px; }
.login-form .login-label { font-size: 12px; font-weight: 500; line-height: 1.5; margin: 21px 0 9px; color: #42516b; }
.login-form .login-label:first-child { margin-top: 0; }
.login-input-wrap { position: relative; }
.auth-card .login-form .login-input-wrap input { margin: 0; width: 100%; height: 54px; padding: 15px 46px!important; background: var(--login-field); border: 1px solid var(--login-stroke); border-radius: 12px; font-size: 16px; line-height: 1.5; color: inherit; outline: 0; box-shadow: none; transition: background .2s,border-color .2s,box-shadow .2s; }
.auth-card .login-form .login-input-wrap input::placeholder { color: #8995a9; opacity: 1; font-size: 13px; }
.auth-card .login-form .login-input-wrap input:focus { border-color: #7e9fec; background: #fff; box-shadow: 0 0 0 3px #3d6be40c; }
.login-field-icon { position: absolute; z-index: 1; left: 16px; top: 17px; width: 20px; height: 20px; color: var(--login-muted); pointer-events: none; }
.login-input-wrap:focus-within .login-field-icon { color: var(--auth-accent); }
.login-input-wrap .password-visibility { display: grid; place-items: center; width: 44px; height: 44px; right: 5px; top: 5px; bottom: auto; padding: 12px; border-radius: 8px; }
.login-input-wrap .password-visibility:hover { color: var(--auth-accent); background: #3d6be408; }
.password-visibility svg { width: 20px; height: 20px; }
.password-eye-slash { display: none; }.password-visibility[aria-pressed=true] .password-eye-slash { display: block; }
.login-form .remember { width: fit-content; min-height: 24px; font-size: 12px; margin: 18px 0 24px; gap: 9px; cursor: pointer; }
.login-form .remember input { appearance: none; width: 17px; height: 17px; border: 1px solid #bbc6d6; border-radius: 5px; background: transparent; display: grid; place-content: center; cursor: pointer; }
.login-form .remember input:checked { background: #3d6be4; border-color: #3d6be4; }
.login-form .remember input:checked::after { content: ''; width: 7px; height: 4px; border: solid white; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-1px); }
.auth-card .login-submit { display: flex; align-items: center; justify-content: center; gap: 13px; height: 52px; border-radius: 12px; font-size: 14px; letter-spacing: .01em; }
.login-submit svg { width: 19px; height: 19px; }
.auth-card:has(.login-form) .auth-divider { margin: 24px 0; color: #929caf; font-size: 11px; gap: 17px; }
.auth-card:has(.login-form) .auth-divider::before,.auth-card:has(.login-form) .auth-divider::after { background: var(--login-stroke); }
.auth-card .passkey-login { justify-content: flex-start; text-align: left; gap: 13px; min-height: 82px; padding: 15px; border: 1px solid var(--login-stroke); border-radius: 14px; background: transparent; }
.auth-card .passkey-login:hover { background: #f4f7fc; border-color: #bbcdf1; }
.passkey-symbol { display: grid; place-items: center; width: 42px; height: 46px; flex-shrink: 0; color: #5078c9; }
.auth-card .passkey-symbol svg { width: 32px; height: 32px; }
.passkey-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }.passkey-copy strong { font-size: 13px; font-weight: 500; }.passkey-copy small { color: var(--auth-muted); font-size: 10px; line-height: 1.5; }
.auth-card .passkey-chevron { width: 16px; height: 16px; flex-shrink: 0; margin-left: auto; color: var(--login-muted); }
.auth-card:has(.login-form) .login-help { margin-top: 25px; padding-top: 0; font-size: 10px; line-height: 1.7; }
.auth-card:has(.login-form) .login-help summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; }
.auth-card:has(.login-form) .login-help summary::-webkit-details-marker { display: none; }
.auth-card:has(.login-form) .login-help summary::before { content: '?'; display: grid; place-items: center; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; font: 9px Arial,sans-serif; flex-shrink: 0; }
.auth-card:has(.login-form) .login-help[open] { text-align: left; }
.auth-card:has(.login-form) .login-help[open] summary { color: var(--auth-accent); }
.auth-card:has(.login-form) .message:not(:empty) { padding: 12px 14px; border-radius: 10px; background: #c950650a; margin: 14px 0; font-size: 12px; }
:root[data-theme=dark] .auth-card:has(.login-form) { --login-field: #132237; --login-stroke: #293b52; --login-muted: #91a3bd; --auth-muted: #96a6bb; }
:root[data-theme=dark] .login-form .login-label { color: #c5d0e2; }
:root[data-theme=dark] .auth-card .login-form .login-input-wrap input:focus { background: #172941; border-color: #638ecc; box-shadow: 0 0 0 3px #78a9ff0c; }
:root[data-theme=dark] .auth-card .passkey-login:hover { background: #14243a; border-color: #46628b; }
:root[data-theme=dark] .passkey-symbol { color: #89b2f0; }
:root[data-theme=dark] .login-form .remember input { border-color: #5f7390; }
:root[data-theme=dark] .login-form .remember input:checked { border-color: #527ee8; background: #527ee8; }
@media(max-width:380px) { .auth-card .passkey-login { padding: 12px; gap: 9px; }.passkey-copy strong { font-size: 12px; }.passkey-copy small { font-size: 9px; }.passkey-symbol { width: 32px; } }
@media(min-width:801px) and (max-height:750px) { .auth-card:has(.login-form) { padding-block: 20px; }.auth-card:has(.login-form) .auth-emblem,.auth-card:has(.login-form) .auth-logo { width: 48px; height: 48px; }.auth-card:has(.login-form) .auth-emblem { margin-bottom: 15px; }.auth-card:has(.login-form) h1 { font-size: 30px; margin-bottom: 26px; }.login-form .login-label { margin-top: 17px; }.auth-card:has(.login-form) .auth-divider { margin-block: 20px; }.auth-card:has(.login-form) .login-help { margin-top: 17px; } }
@media(forced-colors:active) { .login-form .remember input { appearance: auto; }.login-form .remember input::after { display: none; } }

/* Separate, focused sign-in pages share the same illustration. */
.login-methods { display:grid; gap:8px; margin-top:18px; }
.login-methods a { display:flex; align-items:center; gap:12px; padding:13px 14px; border:1px solid var(--auth-line); border-radius:12px; text-decoration:none; color:inherit; font-size:13px; transition:background .15s,border-color .15s; }
.login-methods a:hover { background:#527ce50a; border-color:var(--auth-accent); }
.login-methods svg { width:20px; height:20px; color:var(--auth-accent); flex-shrink:0; }
.login-methods a span:last-child { margin-left:auto; color:var(--auth-muted); }
.login-back { display:block; margin:0 0 24px; text-align:center; font-size:12px; text-decoration:none; color:var(--auth-muted); }
.login-back:hover { color:var(--auth-accent); }
.auth-card .passkey-symbol { width:48px; height:48px; border-radius:14px; background:linear-gradient(145deg,#6387e517,#3d6be409); box-shadow:inset 0 0 0 1px #6387e519; }
.auth-card .passkey-symbol svg { width:34px; height:34px; }
.auth-card .passkey-login { min-height:76px; }
.email-login { margin:0; }
#phone-login-panel { margin:0; }
#phone-login-qr { padding:12px; width:fit-content; margin:0 auto 20px; border:1px solid var(--auth-line); border-radius:20px; background:#fff; box-shadow:0 8px 30px #1023460a; }
#phone-login-qr img { display:block; }
#phone-login-panel p { font-size:13px; line-height:1.6; }
#phone-login-code { margin-top:10px; color:var(--auth-accent); }

.phone-passkey[hidden]{display:none!important}

#phone-login-qr img{width:200px}

/* The same detailed blue Touch ID mark as the Mac app. */
.auth-card .passkey-symbol { color:var(--auth-accent); }
.passkey-symbol::before { content:''; width:34px; height:34px; background:currentColor; -webkit-mask:url('/assets/touch-id.svg') center/contain no-repeat; mask:url('/assets/touch-id.svg') center/contain no-repeat; }

/* Native select remains the no-JavaScript fallback and the form value. */
.email-login label { margin:22px 0 10px; font-size:13px; font-weight:500; }
.account-picker { position:relative; }
.account-picker.is-enhanced > select { position:absolute; width:1px; height:1px; padding:0; margin:0; opacity:0; pointer-events:none; clip-path:inset(50%); }
.email-login .account-picker button { margin:0; font:inherit; cursor:pointer; }
.account-picker-trigger { display:flex; align-items:center; gap:12px; width:100%; padding:13px 15px; border:1px solid #dce5f3; border-radius:14px; background:#f5f8fe; color:inherit; text-align:left; transition:border-color .15s,background .15s,box-shadow .15s; }
.account-avatar { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; border-radius:11px; background:#e7eeff; color:var(--auth-accent); font-size:14px; font-weight:600; }
.account-picker-copy { display:grid; gap:4px; flex:1; min-width:0; }
.account-picker-copy > span { font-size:14px; font-weight:500; }
.account-picker-copy small { font-size:10px; color:var(--auth-muted); }
.account-picker-trigger > svg { width:18px; height:18px; flex-shrink:0; color:var(--auth-muted); transition:transform .15s; }
.account-picker-trigger:hover,.account-picker-trigger[aria-expanded=true] { border-color:#9eb8f4; background:#fff; box-shadow:0 4px 16px #3d6be40a; }
.account-picker-trigger[aria-expanded=true] > svg { transform:rotate(180deg); }
.account-picker-trigger:disabled { opacity:.6; cursor:wait; }
.account-picker-options { position:absolute; z-index:10; top:calc(100% + 7px); inset-inline:0; padding:6px; border:1px solid #dce5f3; border-radius:16px; background:#fff; box-shadow:0 14px 36px #1e36551f,0 3px 8px #1e365508; }
.account-picker-option { display:flex; align-items:center; gap:12px; width:100%; padding:10px; border:0; border-radius:10px; background:transparent; text-align:left; color:inherit; }
.account-picker-option:hover,.account-picker-option:focus-visible { background:#f0f5ff; }
.account-picker-option[aria-selected=true] { background:#eaf0ff; color:var(--auth-accent); }
.account-selected { margin-left:auto; color:var(--auth-accent); opacity:0; }
.account-picker-option[aria-selected=true] .account-selected { opacity:1; }
.email-login .field-hint { margin-top:12px; line-height:1.6; }
:root[data-theme=dark] .account-picker-trigger { background:#132237; border-color:#293b52; }
:root[data-theme=dark] .account-picker-trigger:hover,:root[data-theme=dark] .account-picker-trigger[aria-expanded=true] { background:#172941; border-color:#638ecc; }
:root[data-theme=dark] .account-avatar { background:#213656; }
:root[data-theme=dark] .account-picker-options { background:#122238; border-color:#304865; }
:root[data-theme=dark] .account-picker-option:hover,:root[data-theme=dark] .account-picker-option:focus-visible,:root[data-theme=dark] .account-picker-option[aria-selected=true] { background:#203859; }
@media(forced-colors:active) { .account-picker-trigger,.account-picker-options { border-color:ButtonText; }.account-picker-option[aria-selected=true] { outline:1px solid Highlight; }.passkey-symbol::before { background:ButtonText; } }
.account-avatar svg { width:20px; height:20px; }
.account-picker-options { max-height:min(280px,45vh); overflow-y:auto; }
.account-picker.opens-up .account-picker-options { top:auto; bottom:calc(100% + 7px); }
