/* UAT reference styling, locally hosted assets; authentication unchanged. */
#login.aiva-reference-login,#cmLoginPage.aiva-reference-login{position:fixed!important;inset:0!important;z-index:10000!important;width:100%!important;height:100vh!important;height:100dvh!important;display:flex;flex-direction:column;background:#fff!important;color:#151827!important;overflow:auto!important;isolation:isolate;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif!important;font-size:14px!important;transform:none!important}
#login.aiva-reference-login[hidden]{display:none!important}
.aiva-reference-login *{box-sizing:border-box!important}
.aiva-reference-login .ref-header{height:60px;min-height:60px;display:flex;align-items:center;padding:10px 30px;background:#fff}
.aiva-reference-login .ref-logo{height:40px;width:auto;max-width:200px;object-fit:contain}
.aiva-reference-login .ref-body{width:100%;min-width:0;align-self:stretch;position:relative;flex:1 0 auto;min-height:calc(100dvh - 120px);display:flex;align-items:center;justify-content:flex-end;padding:36px clamp(24px,10vw,220px) 36px 24px;background:#b7ccd9 url('./background.jpg') center center/cover no-repeat}
.aiva-reference-login .ref-card{width:382px;max-width:100%;flex:none;background:#fff!important;color:#151827!important;padding:26px 28px 24px!important;border:0!important;border-radius:16px!important;box-shadow:0 12px 34px #16305529!important;backdrop-filter:none!important;margin:0!important;transform:none!important}
.aiva-reference-login .ref-title{font-size:26px!important;font-weight:600!important;line-height:34px!important;text-align:center;color:#151827!important;margin:0 0 2px!important;letter-spacing:0!important}
.aiva-reference-login .ref-subtitle{text-align:center;font-size:12px;color:#777f8d;margin:0 0 24px;line-height:18px}
.aiva-reference-login .ref-label{display:block!important;color:#4b5563!important;margin:14px 0 7px!important;font-weight:400!important;font-size:14px!important;line-height:20px!important}
.aiva-reference-login .ref-input{display:block!important;width:100%!important;min-width:0;height:46px!important;padding:10px 12px!important;color:#202939!important;background:#fff!important;border:1px solid #dcdfe6!important;border-radius:5px!important;box-shadow:none!important;font-size:16px!important;font-weight:400!important;line-height:24px!important;margin:0!important;outline:none!important}
.aiva-reference-login .ref-input::placeholder{color:#a2a7b0!important}
.aiva-reference-login .ref-input:focus{border-color:#4d6cff!important;box-shadow:0 0 0 3px #4d6cff12!important}
.aiva-reference-login .ref-submit{display:block;width:100%!important;min-height:46px;height:auto!important;border:0!important;border-radius:6px!important;background:linear-gradient(90deg,#4d6cff,#667dff)!important;color:white!important;font-size:16px!important;font-weight:500!important;letter-spacing:2px;padding:12px!important;margin:22px 0 0!important;box-shadow:none!important;cursor:pointer;line-height:22px!important}
.aiva-reference-login .ref-submit:disabled{opacity:.6;cursor:wait}
.aiva-reference-login .ref-error{color:#b42318!important;font-size:13px!important;line-height:20px;margin:12px 0 0!important;background:#fff3f1;border-radius:5px;padding:8px;max-width:100%;overflow-wrap:anywhere}
.aiva-reference-login .ref-error:empty{display:none}
.aiva-reference-login .ref-remember{display:flex!important;align-items:center;gap:7px;font-size:12px!important;color:#777f8d!important;margin:14px 0 0!important;line-height:20px!important}
.aiva-reference-login .ref-remember input{appearance:auto!important;position:static!important;width:16px!important;height:16px!important;margin:0!important;accent-color:#c90028}
.aiva-reference-login .ref-switch{display:block;background:none!important;color:#6b7280!important;border:0!important;box-shadow:none!important;font-size:13px!important;margin:14px auto 0!important;padding:6px!important;cursor:pointer;letter-spacing:0!important}
.aiva-reference-login .ref-footer{display:flex;flex:none;min-height:60px;padding:14px 18px;align-items:center;justify-content:center;text-align:center;font-size:12px;color:#909399;background:#fff;line-height:20px}
.aiva-reference-login .ref-note{font-size:12px;color:#777f8d;line-height:18px;margin-top:16px;text-align:center}
.aiva-reference-login [hidden]{display:none!important}
@media(max-width:900px){.aiva-reference-login .ref-body{padding:28px;justify-content:center;background-position:35% center}.aiva-reference-login .ref-card{width:382px}}
@media(max-width:600px){.aiva-reference-login .ref-header{padding:12px 20px;height:64px;min-height:64px}.aiva-reference-login .ref-logo{height:32px}.aiva-reference-login .ref-body{min-height:calc(100dvh - 120px);padding:clamp(72px,17vh,150px) 18px 28px;align-items:flex-start;background-position:30% top}.aiva-reference-login .ref-card{padding:24px!important;width:380px}.aiva-reference-login .ref-title{font-size:24px!important}.aiva-reference-login .ref-footer{min-height:56px;padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(max-height:540px){.aiva-reference-login .ref-body{min-height:460px;padding-top:24px;padding-bottom:24px}.aiva-reference-login .ref-header{height:52px;min-height:52px}.aiva-reference-login .ref-logo{height:30px}}
