/* =============================================================================
   dMACQ - sign-in screens: SweetAlert2 dialogs (shared). Split from resources/css/dms-auth.css.
   SweetAlert2 appends its popup to <body>, outside .auth-shell, so these rules hang off body.dms-auth (the class the
   stand-alone sign-in pages put on <body>; license.php and error_401.php do not, and use no dialogs).
   Two builds are in use: resources/new_js/sweetalert.js (login.php, injects its own CSS) and the one inside
   resources/new_js/plugins.bundle.js (reset.php, renew_password_form.php; base CSS from plugins.bundle.css, whose
   Metronic colours read --kt-* variables that are no longer defined - overridden at the end).
   Loaded by include/auth_head.php.
   ============================================================================= */

body.dms-auth .swal2-container { padding: 16px; }
body.dms-auth .swal2-popup {
    width: min(420px, 100%);
    padding: 28px 24px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .35);
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
}
body.dms-auth .swal2-icon { margin: 4px auto 14px; scale: .78; }   /* `scale`, not transform: the icon animation animates transform */
body.dms-auth .swal2-popup .swal2-title { padding: 0; font-size: 18px; font-weight: 700; line-height: 1.35; color: #0f172a; }
body.dms-auth .swal2-popup .swal2-html-container {
    margin: 8px 4px 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #334155;
}
body.dms-auth .swal2-popup .swal2-html-container b,
body.dms-auth .swal2-popup .swal2-html-container strong { font-weight: 600; color: #0f172a; }
body.dms-auth .swal2-popup .swal2-actions { gap: 10px; margin: 22px 0 0; width: 100%; }
body.dms-auth .swal2-actions > button { margin: 0 !important; }
body.dms-auth .swal2-popup .btn,
body.dms-auth .swal2-popup .swal2-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid #2950da;
    border-radius: 8px;
    background: #2950da;
    background-image: none;
    box-shadow: 0 4px 12px rgba(41, 80, 218, .22);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.dms-auth .swal2-popup .btn:hover,
body.dms-auth .swal2-popup .swal2-styled:hover { border-color: #2243b6; background: #2243b6; color: #fff; }
body.dms-auth .swal2-popup .btn:focus-visible,
body.dms-auth .swal2-popup .swal2-styled:focus-visible { outline: 2px solid #2950da; outline-offset: 2px; box-shadow: none; }
body.dms-auth .swal2-popup .swal2-styled:focus:not(:focus-visible) { outline: 0; box-shadow: none; }
/* Cancel is never the destructive action here (on login.php "Ok" ends the old session) - neutral outline */
body.dms-auth .swal2-popup .swal2-cancel.swal2-cancel {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: none;
    color: #334155;
}
body.dms-auth .swal2-popup .swal2-cancel.swal2-cancel:hover { border-color: #94a3b8; background: #f8fafc; color: #0f172a; }
body.dms-auth .swal2-popup .swal2-cancel.swal2-cancel:focus-visible { outline: 2px solid #2950da; outline-offset: 2px; box-shadow: none; }
body.dms-auth .swal2-popup .swal2-deny,
body.dms-auth .swal2-popup .btn-danger:not(.swal2-cancel) { border-color: #dc2626; background: #dc2626; box-shadow: none; }
body.dms-auth .swal2-popup .swal2-deny:hover,
body.dms-auth .swal2-popup .btn-danger:not(.swal2-cancel):hover { border-color: #b91c1c; background: #b91c1c; }
body.dms-auth .swal2-timer-progress-bar { background: rgba(41, 80, 218, .35); }
/* Metronic's plugins.bundle.css colours the popup and icons with --kt-* variables that only style.bundle.css
   defines (no longer loaded): give them the sign-in palette */
body.dms-auth .swal2-popup { background: #fff; }
body.dms-auth .swal2-icon.swal2-success { border-color: #059669; color: #059669; }
body.dms-auth .swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: #059669; }
body.dms-auth .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(5, 150, 105, .3); }
body.dms-auth .swal2-icon.swal2-info,
body.dms-auth .swal2-icon.swal2-question { border-color: #c7d2fe; color: #2950da; }
body.dms-auth .swal2-icon.swal2-warning { border-color: #fde68a; color: #d97706; }
body.dms-auth .swal2-icon.swal2-error { border-color: #dc2626; color: #dc2626; }
body.dms-auth .swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: #dc2626; }
@media (prefers-reduced-motion: reduce) {
    body.dms-auth .swal2-popup,
    body.dms-auth .swal2-container,
    body.dms-auth .swal2-icon,
    body.dms-auth .swal2-icon * { animation: none !important; transition: none !important; }
}
