/* AUTH-003: full original Saluja wallpaper, responsive premium authentication card. */
*{box-sizing:border-box}html{color-scheme:light}body{margin:0;font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172334;background:#101c2c;--accent:#c99a42;--muted:#64748b}button,input{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;flex-shrink:0}
.auth-shell{min-height:100vh;min-height:100dvh;display:grid;place-items:center;position:relative;isolation:isolate;padding:36px 24px;background:radial-gradient(ellipse at 40% 45%,#314255 0,#101c2c 66%)}
.auth-wallpaper{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 50%,#c99a4214,transparent 70%)}
.has-wallpaper .auth-wallpaper{background-size:cover;background-position:center center;background-repeat:no-repeat}
.auth-main{width:min(100%,400px);min-width:0;background:#fff;border-radius:22px;padding:32px;border:1px solid #ffffffb0;box-shadow:0 25px 90px #0005,0 3px 12px #0002;position:relative;overflow:hidden}
.auth-main:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--accent)}
@media(min-width:1100px){.has-wallpaper .auth-main{transform:translateX(-6vw)}}
.brand{display:flex;align-items:center;gap:12px;min-width:0;padding-bottom:23px;border-bottom:1px solid #e8edf3}
.brand-mark,.brand-logo{width:48px;height:48px;border-radius:11px;flex-shrink:0}.brand-mark{background:#142235;color:#e6bb65;display:grid;place-items:center;font-size:24px;font-weight:750}.brand-logo{object-fit:contain;border:1px solid #e3e7ed;background:#fff;padding:2px}.brand strong{font-size:18px;display:block;line-height:1.25;overflow-wrap:anywhere}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:3px;overflow-wrap:anywhere}
.auth-content{width:100%;padding:26px 0 23px}.auth-heading{margin-bottom:23px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.14em;color:#75613b}.auth-heading h1{font-size:28px;line-height:1.16;letter-spacing:-.04em;margin:8px 0;font-weight:740}.auth-heading p{margin:0;color:var(--muted);font-size:13px}
.auth-form{display:flex;flex-direction:column;gap:9px}.auth-form>label:not(.remember){font-weight:650;font-size:13px;margin-top:5px}.auth-form input:not([type=checkbox]){width:100%;min-width:0;height:52px;border:1px solid #d6dee7;border-radius:9px;padding:0 13px;background:#f8fafc;color:#172334;font-size:16px;outline:none;transition:border-color .15s,background .15s,box-shadow .15s}.auth-form input:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px #c99a4224}.auth-form input::placeholder{color:#738196;font-size:13px}.password-wrap{position:relative}.password-wrap input{padding-right:54px!important}.password-toggle{position:absolute;right:5px;top:4px;width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:#64748b;border-radius:8px}.auth-button:focus-visible,.back-link:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.remember{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:#344258;margin:9px 0 13px;cursor:pointer}.remember input{width:18px;height:18px;accent-color:#142235;margin:1px 0 0;flex-shrink:0}.remember small{display:block;color:#64748b;font-size:11px;margin-top:4px}.auth-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border:0;background:var(--accent);color:var(--on-accent,#101c2c);font-weight:750;border-radius:9px;box-shadow:0 5px 12px #101c2c18;padding:12px;transition:filter .15s,transform .15s}.auth-button:hover{filter:brightness(.95)}.auth-button:active{transform:translateY(1px)}.auth-button:disabled{opacity:.7;cursor:wait}.auth-button svg{width:18px;height:18px}.auth-help{color:var(--muted);font-size:12px;margin:19px 0 0;line-height:1.65}.auth-help strong{color:#344258}.auth-footer{border-top:1px solid #e8edf3;padding-top:16px;display:flex;justify-content:space-between;gap:10px;color:#64748b;font-size:11px;flex-wrap:wrap}.auth-footer span:last-child{display:flex;align-items:center;gap:5px}.auth-footer svg{width:14px;height:14px}
.notice{padding:12px 14px;border:1px solid #f2c4c4;background:#fff3f3;color:#a52121;border-radius:9px;font-size:13px;margin-bottom:16px;overflow-wrap:anywhere}.notice.success{background:#edf9f1;border-color:#b9e6ca;color:#17663c}.verification-icon{width:48px;height:48px;border-radius:12px;background:#f5ebd6;color:#78551e;display:grid;place-items:center;margin-bottom:17px}.verification-icon svg{width:26px;height:26px}.otp-input{letter-spacing:.45em;text-align:center;font-weight:700;font-size:23px!important;margin-bottom:12px}.otp-input::placeholder{font-size:22px!important}.back-form{margin-top:16px}.back-link{border:0;background:none;color:#344258;font-size:13px;font-weight:650;padding:8px 0}
/* AUTH-006: tablet/desktop keep full background, mobile never uses a header banner. */
@media(min-width:768px) and (max-width:1099px){.auth-main{width:min(100%,420px)}}
.developer-help{text-align:center;margin-top:22px;font-size:13px}.developer-help a,.developer-help strong{color:#344258;font-weight:700}.developer-help a{text-decoration:underline;text-underline-offset:3px}.developer-help a:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
@media(max-width:767px){
 .auth-shell{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;background:#fff;min-height:100vh;min-height:100dvh}
 .auth-wallpaper{display:none}
 .auth-main{width:100%;max-width:480px;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;transform:none;margin:0;border:0;border-radius:0;box-shadow:none;padding:max(28px,env(safe-area-inset-top)) max(26px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(26px,env(safe-area-inset-left));overflow:visible}
 .auth-main:before{display:none}
 .brand{padding:0 0 24px;border-bottom:1px solid #edf0f4}
 .brand .crm-identity-auth{gap:12px}
 .brand .crm-identity-icon{width:46px;height:46px;flex-basis:46px}
 .brand .crm-identity-wordmark{height:auto;width:auto;max-height:38px;max-width:min(100%,188px)}
 .brand .crm-identity-tag{font-size:11px;margin-top:4px}
 .auth-content{padding:34px 0 30px;flex:1;display:flex;flex-direction:column;justify-content:center}
 .auth-heading{margin-bottom:26px}.auth-heading h1{font-size:29px;line-height:1.18}.auth-heading p{font-size:14px;line-height:1.6}
 .auth-form{gap:10px}.auth-form input:not([type=checkbox]){height:54px;border-radius:12px}.auth-button{min-height:54px;border-radius:12px}.password-toggle{top:5px}.remember{margin:12px 0 15px}.auth-footer{padding-top:16px;gap:8px;margin-top:auto}
 .has-mobile-wallpaper .auth-shell{padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#101c2c}
 .has-mobile-wallpaper .auth-wallpaper{display:block;position:absolute;inset:0;z-index:-1}
 .has-mobile-wallpaper .auth-main{min-height:0;border-radius:24px;box-shadow:0 18px 60px #0005;padding:26px 22px;overflow:hidden}
}
@media(max-width:360px){.auth-main{padding-left:20px;padding-right:20px}.auth-heading h1{font-size:26px}.has-mobile-wallpaper .auth-main{padding:22px 17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Configurable wallpaper; never interpolate a URL into CSS. */
.auth-wallpaper picture,.auth-wallpaper img,.wallpaper-shade{position:absolute;inset:0;width:100%;height:100%;display:block}.auth-wallpaper img{object-fit:cover;object-position:center}.wallpaper-shade{background:#101c2c;pointer-events:none}

/* AUTH-007: accessible eye / eye-off control, no duplicate browser reveal. */
.password-toggle{color:#64748b;touch-action:manipulation;transition:color .15s,background .15s;z-index:1}
.password-toggle span{display:grid;place-items:center;pointer-events:none}
.password-toggle svg{width:22px;height:22px;stroke-width:1.8;pointer-events:none}
.password-toggle .password-eye-off,.password-toggle[aria-pressed="true"] .password-eye{display:none}
.password-toggle[aria-pressed="true"] .password-eye-off{display:grid}
/* AUTH-008: consistent neutral eye in every pointer/pressed state; keyboard focus remains visible. */
.password-toggle,.password-toggle:hover,.password-toggle:active,.password-toggle:focus,.password-toggle[aria-pressed="true"]{color:#64748b;background:transparent;box-shadow:none;-webkit-tap-highlight-color:transparent;outline:none}
.password-toggle:focus-visible{outline:2px solid #64748b;outline-offset:1px}
.password-wrap input::-ms-reveal,.password-wrap input::-ms-clear{display:none}

/* CORE-010: override native WebView button appearance and touch highlight. */
.auth-form .password-wrap .password-toggle{appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);user-select:none;-webkit-user-select:none;transition:none}
.auth-form .password-wrap .password-toggle:is(:hover,:active,:focus,[aria-pressed="true"]){color:#64748b;background:transparent;border:0;box-shadow:none;outline:none}
.auth-form .password-wrap .password-toggle:focus-visible{outline:2px solid #64748b;outline-offset:1px}
.auth-form .password-toggle svg{stroke:currentColor;fill:none}
