/* DispenserSTAT shared authentication design – presentation only. */
body.auth-body{--auth-field:#eef2f8;--auth-icon:#fff;--auth-border:#dce3ef;--auth-ink:var(--text);--auth-muted:var(--text-soft);background:#f7f8fa;min-height:100dvh}
html[data-theme=dark] body.auth-body{--auth-field:#293449;--auth-icon:#192331;--auth-border:#3a465a;background:var(--app-bg)}
body.auth-body .ds-auth-screen{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.95fr);direction:ltr;align-content:center;width:min(1200px,calc(100% - 42px));min-height:100dvh;margin:auto;padding:28px 0}
body.auth-body .ds-auth-card,body.auth-body .ds-auth-preview{min-height:620px;min-width:0;border:1px solid var(--auth-border)}
body.auth-body .ds-auth-card{direction:rtl;display:flex;align-items:center;justify-content:center;background:var(--sidebar-bg);border-radius:16px 0 0 16px;padding:35px clamp(24px,5vw,65px)}
body.auth-body .ds-auth-inner{display:flex;flex-direction:column;width:100%;max-width:405px;min-width:0}
body.auth-body .ds-auth-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:40px;color:var(--auth-ink);font-size:25px;font-weight:500;letter-spacing:-.04em;text-align:center}
body.auth-body .ds-auth-brand .ds-brand-mark{width:43px;height:43px;flex-basis:43px;border-radius:10px}
body.auth-body .ds-auth-brand-name{overflow-wrap:anywhere;min-width:0}
body.auth-body .ds-auth-intro{text-align:center;margin:0 0 25px}
body.auth-body .ds-auth-intro .eyebrow{display:block;margin-bottom:10px;color:var(--accent-strong);font-size:11px;font-weight:500;letter-spacing:0}
body.auth-body .ds-auth-intro h1{font-size:clamp(24px,2.5vw,31px);line-height:1.25;font-weight:500;letter-spacing:-.045em;text-wrap:balance}
body.auth-body .ds-auth-intro p{margin:8px auto 0;color:var(--auth-muted);font-size:13px;line-height:1.6;text-wrap:pretty;max-width:360px}
body.auth-body .ds-auth-form{width:100%;max-width:none;margin:0;display:flex;flex-direction:column;gap:14px}
body.auth-body .ds-auth-field{display:flex;flex-direction:column;gap:7px;min-width:0}
body.auth-body .ds-auth-field>label{color:var(--auth-ink);font-size:12px;font-weight:500}
body.auth-body .ds-auth-input-shell{display:flex;align-items:stretch;min-height:56px;height:56px;width:100%;min-width:0;border:1px solid var(--auth-border);border-radius:9px;background:var(--auth-field);overflow:hidden;transition:border-color .15s,box-shadow .15s}
body.auth-body .ds-auth-input-shell:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}
body.auth-body .ds-auth-input-icon{display:grid;place-items:center;width:56px;flex:0 0 56px;background:var(--auth-icon);border-inline-end:1px solid var(--auth-border);color:var(--auth-muted);font-size:22px}
body.auth-body .ds-auth-input-shell>input{display:block;flex:1;min-width:0;width:100%;height:100%;min-height:0;max-height:100%;padding:0 15px;margin:0;border:0!important;border-radius:0;background:transparent!important;outline:none!important;box-shadow:none!important;font-size:15px;font-weight:400;line-height:normal;vertical-align:middle;text-align:right;direction:rtl;color:var(--auth-ink)}
/* The global inputs.css skin and browser autofill must not repaint the field white.
   Only the icon compartment is white; every auth input is filled light grey. */
body.auth-body .ds-auth-input-shell>input,
body.auth-body .ds-auth-input-shell>input.ds-ui-input{
 background:var(--auth-field)!important;background-color:var(--auth-field)!important
}
body.auth-body .ds-auth-input-shell>input:-webkit-autofill,
body.auth-body .ds-auth-input-shell>input:-webkit-autofill:hover,
body.auth-body .ds-auth-input-shell>input:-webkit-autofill:focus{
 -webkit-box-shadow:0 0 0 1000px var(--auth-field) inset!important;
 -webkit-text-fill-color:var(--auth-ink)!important
}
body.auth-body .ds-auth-input-shell>input::placeholder{color:var(--auth-muted);opacity:.8}
body.auth-body .ds-auth-input-shell>input[name=username],body.auth-body .ds-auth-input-shell>input[name=password]{direction:ltr;text-align:right}
body.auth-body .ds-auth-visibility{display:grid;place-items:center;width:44px;flex:0 0 44px;color:var(--auth-muted);border:0;background:transparent;font-size:20px;cursor:pointer}
body.auth-body .ds-auth-visibility:hover{color:var(--accent-strong)}
body.auth-body .ds-auth-input-shell.ds-auth-code-input{height:64px}
body.auth-body .ds-auth-input-shell.ds-auth-code-input>input{direction:ltr;text-align:center;font-size:24px;letter-spacing:.27em;font-weight:500;padding:0 10px;font-variant-numeric:tabular-nums;line-height:normal}
body.auth-body .ds-auth-input-shell.ds-auth-code-input>input::placeholder{color:#8d9aad;opacity:1}
body.auth-body .ds-auth-input-shell.ds-auth-recovery-code>input{font-size:17px;letter-spacing:.03em}
body.auth-body .ds-auth-form .primary-action,body.auth-body .ds-auth-primary{width:100%;min-height:53px;margin:4px 0 0;border:0;border-radius:9px;background:var(--accent-base);color:var(--accent-on-base);display:flex;justify-content:center;align-items:center;gap:10px;padding:12px 17px;font-size:15px;font-weight:500;text-decoration:none}
body.auth-body .ds-auth-form .primary-action:hover,body.auth-body .ds-auth-primary:hover{background:var(--accent-base-hover);color:var(--accent-on-base)}
body.auth-body .ds-auth-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:20px 0 0}
body.auth-body .ds-auth-link{background:transparent;border:0;padding:4px 0;color:var(--accent-strong);cursor:pointer;text-decoration:none;font-size:12px}
body.auth-body .ds-auth-link:hover{text-decoration:underline}
body.auth-body .ds-auth-note{font-size:11px;line-height:1.55;text-align:center;color:var(--auth-muted);margin-top:18px;text-wrap:pretty}
body.auth-body .ds-auth-preview{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;isolation:isolate;border-radius:0 16px 16px 0;background:var(--accent-base);border-color:var(--accent-base)}
body.auth-body .ds-auth-preview::before,body.auth-body .ds-auth-preview::after{content:"";position:absolute;border:1px solid #ffffff24;border-radius:50%;z-index:-1;pointer-events:none}
body.auth-body .ds-auth-preview::before{width:680px;height:680px;right:-250px;top:-330px}
body.auth-body .ds-auth-preview::after{width:660px;height:660px;left:-230px;bottom:-430px}
body.auth-body .ds-auth-cloud{position:relative;z-index:1;width:210px;height:93px;background:var(--accent-cloud);border-radius:80px}
body.auth-body .ds-auth-cloud::before,body.auth-body .ds-auth-cloud::after{content:"";position:absolute;border-radius:50%;background:inherit}
body.auth-body .ds-auth-cloud::before{width:112px;height:112px;left:35px;top:-61px}
body.auth-body .ds-auth-cloud::after{width:88px;height:88px;left:115px;top:-36px}
body.auth-body .ds-auth-preview-label{position:absolute;left:25px;bottom:23px;color:var(--accent-on-base);opacity:.75;direction:ltr;font-size:10px;letter-spacing:.11em}
body.auth-body .ds-mfa-auth-card{overflow-y:auto}
body.auth-body .ds-mfa-auth-card .ds-auth-inner{max-width:430px}
body.auth-body .ds-mfa-qr{margin:4px auto 11px;width:174px;height:174px;padding:5px}
body.auth-body .ds-mfa-qr img,body.auth-body .ds-mfa-qr canvas{max-width:162px;max-height:162px}
body.auth-body .ds-mfa-secret-caption{text-align:center;line-height:1.5;font-size:11px}
body.auth-body .ds-mfa-secret{max-width:100%;margin:4px auto 13px;font-size:11px;background:var(--auth-field);color:var(--auth-ink)}
body.auth-body .ds-mfa-recovery-list{max-width:none;width:100%;margin-bottom:12px}
body.auth-body .ds-mfa-recovery-list code{background:var(--auth-field);padding:10px 6px}
body.auth-body .ds-mfa-confirm-form{max-width:none;width:100%;gap:13px}
body.auth-body .ds-mfa-copy-codes{width:100%;min-height:40px;margin-bottom:11px}
body.auth-body .ds-mfa-saved-confirm{margin-top:6px}
body.auth-body .ds-mfa-cancel{width:100%;text-decoration:none;text-align:center;margin:15px 0 0}
body.auth-body .ds-mfa-cancel:hover{text-decoration:underline}
body.auth-body .ds-auth-inline-alert{border:1px solid color-mix(in srgb,var(--danger) 25%,var(--auth-border));border-radius:8px;background:color-mix(in srgb,var(--danger) 9%,var(--sidebar-bg));color:var(--text);font-size:12px;line-height:1.55;padding:11px 13px;margin-bottom:14px}
.ds-brand-mark{display:grid;place-items:center;overflow:hidden}
.ds-brand-mark .ds-brand-letter{display:grid;place-items:center;width:100%;height:100%}
.ds-brand-mark .ds-brand-image{display:none;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;position:absolute;inset:0;padding:0}
/* Custom logos are standalone artwork, NOT the square avatar used by the default D. */
html:not([data-theme=dark]) .ds-brand-mark.has-light,
html[data-theme=dark] .ds-brand-mark.has-dark{
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;color:inherit
}
.ds-brand-mark{position:relative}
.ds-brand-mark.has-light .ds-brand-image-light{display:block}
.ds-brand-mark.has-light .ds-brand-letter{display:none}
html[data-theme=dark] .ds-brand-mark.has-light .ds-brand-image-light{display:none}
html[data-theme=dark] .ds-brand-mark.has-light .ds-brand-letter{display:grid}
html[data-theme=dark] .ds-brand-mark.has-dark .ds-brand-image-dark{display:block}
html[data-theme=dark] .ds-brand-mark.has-dark .ds-brand-letter{display:none}
@media(max-width:800px){
 body.auth-body .ds-auth-screen{width:min(600px,calc(100% - 24px));min-height:100dvh;grid-template-columns:minmax(0,1fr);padding:15px 0}
 body.auth-body .ds-auth-preview{display:none}
 body.auth-body .ds-auth-card{height:auto;min-height:0;border-radius:15px;padding:30px clamp(16px,6vw,44px)}
 body.auth-body .ds-auth-brand{margin-bottom:26px;font-size:22px}
 body.auth-body .ds-auth-card .ds-auth-inner{max-width:430px}
}
@media(max-width:440px){
 body.auth-body .ds-auth-screen{width:100%;padding:0}
 body.auth-body .ds-auth-card{min-height:100dvh;border:0;border-radius:0;padding:22px 20px}
 body.auth-body .ds-auth-input-shell{height:54px;min-height:54px}
 body.auth-body .ds-auth-input-icon{width:51px;flex-basis:51px}
 body.auth-body .ds-auth-brand-name{font-size:20px}
 body.auth-body .ds-auth-intro h1{font-size:24px}
}

/* Site maintenance uses the SAME login card, background and brand components. */
body.auth-body .ds-auth-maintenance-icon{
 display:grid;place-items:center;margin:0 auto 24px;
 width:64px;height:64px;border-radius:15px;
 background:var(--accent-wash);color:var(--accent-strong);font-size:30px;
}
body.auth-body .ds-auth-maintenance-intro{margin-bottom:0}
body.auth-body .ds-auth-maintenance-message{
 white-space:pre-line;overflow-wrap:anywhere;max-width:390px;margin-top:16px;
}

/* Phase 1: shared auth card direction follows the document on migrated pages.
   Keep credential fields LTR; align their text to the locale's start edge. */
html[dir=ltr] body.auth-body .ds-auth-card{direction:ltr}
html[dir=ltr] body.auth-body .ds-auth-input-shell>input{direction:ltr;text-align:start}

html[dir=ltr] body.auth-body .ds-auth-input-shell.ds-auth-code-input>input{text-align:center}
