/* Góc phải, gọn trên desktop và không tràn màn hình điện thoại. */
.auth-notice {
    --notice-color:#B3261E;
    position:fixed; top:calc(88px + env(safe-area-inset-top)); right:20px;
    z-index:2100; width:360px; max-width:calc(100vw - 32px);
    display:flex; align-items:flex-start; gap:10px; padding:13px 12px;
    border:1px solid #E5EAE7; border-left:4px solid var(--notice-color);
    border-radius:12px; background:#fff; color:#263C32;
    box-shadow:0 8px 28px rgba(8,43,61,.16);
    font-size:13px; font-weight:500; line-height:1.5;
    opacity:0; transform:translateX(calc(100% + 24px));
    transition:transform .24s ease,opacity .24s ease;
}
.auth-notice.is-success { --notice-color:var(--brand-green-dark,#247A4B); }
.auth-notice.is-visible { opacity:1; transform:translateX(0); }
.auth-notice-icon {
    flex:0 0 22px; height:22px; display:grid; place-items:center;
    border-radius:50%; background:var(--notice-color); color:#fff; font-weight:700;
}
.auth-notice-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.auth-notice-close {
    flex:0 0 24px; height:24px; padding:0; border:0; border-radius:5px;
    background:transparent; color:#617267; font:inherit; font-size:21px; line-height:1;
    cursor:pointer;
}
.auth-notice-close:hover { background:#F0F5F1; color:#173A2A; }
.auth-notice-close:focus-visible { outline:2px solid var(--brand-green,#39A96B); outline-offset:2px; }
@media(max-width:575.98px) {
    .auth-notice { top:calc(76px + env(safe-area-inset-top)); right:12px; max-width:calc(100vw - 24px); }
}
@media(prefers-reduced-motion:reduce) { .auth-notice { transition:none; transform:none; } }
