/* -------------------------------------------------------------------------
   LOGIN CARD - REDESIGN (v2)

   A styling layer over the existing card: no markup or behaviour changes.
   To go back to the previous look, delete the <x-css-asset> line for this file
   in Modules/Frontend/Resources/views/auth/login.blade.php.

   Scoped to `.login-wrap` (this page only). The module/role chooser inside the
   card (#login-modules) is left alone; only the credentials step is restyled.
   ------------------------------------------------------------------------- */

.login-wrap {
    /* border: 1px solid rgba(94, 114, 228, .14); */
    border-radius: 1.75rem;
    background: #fff;
    box-shadow:
        0 30px 60px -28px rgba(34, 48, 120, .45),
        0 12px 24px -16px rgba(34, 48, 120, .25);
    overflow: visible;
}

/* ---- heading -------------------------------------------------------- */

.login-wrap .login-step-credentials h3 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 6px 0 2px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #3e52d6;
}

.login-wrap .login-step-credentials h3 .fa-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 6px;
    border-radius: 11px;
    font-size: 16px;
    color: #3e52d6;
    background: #e8ecfb;
    vertical-align: middle;
}

.login-wrap .login-step-credentials h6 {
    font-size: 11px;
    font-weight: 700;
    /* letter-spacing: 1.6px; */
    color: #8a93b2 !important;
}

/* ---- fields --------------------------------------------------------- */

.login-wrap .login-form .login-step-credentials .form-group {
    margin-bottom: 16px;
}

.login-wrap .login-form .login-step-credentials .input-group {
    align-items: stretch;
    border: 1.5px solid #e3e8f6;
    border-radius: 30px;
    background: #f5f7fd;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-wrap .login-form .login-step-credentials .input-group:focus-within {
    border-color: #5e72e4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(94, 114, 228, .14);
}

.login-wrap .login-form .login-step-credentials .input-group-text {
    width: 52px;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    color: #7f8bc4;
}

.login-wrap .login-form .login-step-credentials .input-group:focus-within .input-group-text {
    color: #3949ab;
}

.login-wrap .login-form .login-step-credentials .form-control.login_input {
    height: 48px;
    padding: 0 16px 0 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 600;
    color: #232a5c;
}

.login-wrap .login-form .login-step-credentials .form-control.login_input::placeholder {
    font-weight: 500;
    color: #a3abc7;
}

/* ---- options row ---------------------------------------------------- */

.login-wrap .login-form .globalRemindmeWrapper {
    margin: 4px 2px 0;
    padding: 2px 0 6px;
}

.login-wrap .login-form .login-toggle-label,
.login-wrap .login-form .login-remember-label {
    font-size: 13px;
    font-weight: 700;
    color: #5569e0;
}

.login-wrap .login-form .rememberMeCheck {
    width: auto;
    padding-left: 0;
    padding-right: 28px;
}

/* ---- sign in -------------------------------------------------------- */

.login-wrap .login-form .form-group.login-submit-row {
    margin: 10px 0 2px;
}

.login-wrap .login-form .form-group.login-submit-row .submit,
.login-wrap .login-form .btn.btn-primary.login_submit {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    height: 54px;
    border: 0 !important;
    /* border-radius: 14px !important; */
    font-size: 15px;
    font-weight: 800;
    /* letter-spacing: 1.4px; */
    background: linear-gradient(110deg, #3949ab 0%, #1e88e5 100%) !important;
    box-shadow: 0 14px 24px -12px rgba(57, 73, 171, .75);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.login-wrap .login-form .btn.btn-primary.login_submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 18px 28px -12px rgba(57, 73, 171, .85);
}

.login-wrap .login-form .btn.btn-primary.login_submit:active {
    transform: translateY(0);
}

.login-wrap .login-form .btn.btn-primary.login_submit .fa-lock {
    margin-right: 6px;
}

/* ---- Remember Me checkbox ------------------------------------------- */
/* Same behaviour as the GIAS login: the real <input> is restyled in place (name, id and state are unchanged, so the
   form, Tab / Space and screen readers work as before), the box sits LEFT of the text, fills with the brand gradient
   when ticked and draws a white tick. The old .checkmark span is not needed any more and is hidden. */

.login-wrap .login-form .rememberMeCheck {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 0;
    cursor: pointer;
    user-select: none;
}

.login-wrap .login-form .rememberMeCheck .fa-bookmark,
.login-wrap .login-form .rememberMeCheck .checkmark {
    display: none;
}

.login-wrap .login-form .rememberMeCheck input[type="checkbox"] {
    order: -1;
    position: static;
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    display: inline-grid;
    place-content: center;
    width: 19px;
    height: 19px;
    margin: 0;
    opacity: 1;
    cursor: pointer;
    background: #fff;
    border: 1.5px solid #c5c8de;
    border-radius: 15px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.login-wrap .login-form .rememberMeCheck input[type="checkbox"]::before {
    content: "";
    width: 11px;
    height: 11px;
    background: no-repeat center / contain
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E");
    transform: scale(0);
    transition: transform .14s ease-out;
}

.login-wrap .login-form .rememberMeCheck:hover input[type="checkbox"] {
    border-color: #5e72e4;
}

.login-wrap .login-form .rememberMeCheck input[type="checkbox"]:checked {
    background-image: linear-gradient(135deg, #5e72e4 0%, #3a4fd4 100%);
    background-origin: border-box;
    background-clip: border-box;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(58, 79, 212, .4);
}

.login-wrap .login-form .rememberMeCheck input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.login-wrap .login-form .rememberMeCheck input[type="checkbox"]:active {
    transform: scale(.92);
}

.login-wrap .login-form .rememberMeCheck input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 114, 228, .3);
}

/* ---- brand header ----------------------------------------------------- */

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand .app_logo {
    width: 380px;
    flex: none;
    max-width: 100%;
    /* margin-bottom: 18px !important; */
}

/* short rule between the logo and the title */
.login-brand .app_logo::after {
    content: none;
}

.login-brand .login-brand-title {
    position: relative;
    padding-top: 5px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .3px;
    text-shadow: 0 2px 10px rgba(10, 20, 80, .25);
}

.login-brand .login-brand-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(255, 255, 255, .15), #fff, rgba(255, 255, 255, .15));
}

.login-brand .login-brand-subtitle {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .4px;
    color: rgba(255, 255, 255, .86) !important;
}

/* a little more room before the card so the ERP badge doesn't crowd the subtitle */
.login-wrap-glow {
    margin-top: 6px;
}
.login-wrap {
    margin-top: 14px;
}

@media (max-width: 575px) {
    .login-brand .app_logo { width: 270px; }
    .login-brand .login-brand-title { font-size: 23px; }
    .login-brand .login-brand-subtitle { font-size: 13px; }
}

/* ---- validation messages --------------------------------------------- */
/* The message is shown inside the empty field, right-aligned, so it takes no space of its own: nothing moves, and it
   cannot crowd the next field or row. An invalid field is marked by its border; the icon keeps its normal colour. */

.login-wrap .login-form .login-step-credentials .form-group {
    position: relative;
    margin-bottom: 16px;
}

.login-wrap .login-form .login-step-credentials .usernameErrorBlock,
.login-wrap .login-form .login-step-credentials .passwordErrorBlock {
    position: absolute;
    top: 0;
    right: 16px;
    height: 52px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.login-wrap .login-form .login-step-credentials ul.parsley-errors-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* parsley.css gives .parsley-required margin-top:10px and font-size:13px, which pushed the text below the field's
   centre line and ignored the size set on the list. */
.login-wrap .login-form .login-step-credentials .parsley-required {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    color: #e0364f;
}

.login-wrap .login-form .login-step-credentials .input-group:has(.parsley-error) {
    border-color: #f0617a;
    background: #fff6f8;
}

.login-wrap .login-form .login-step-credentials .input-group:has(.parsley-error):focus-within {
    box-shadow: 0 0 0 4px rgba(224, 54, 79, .14);
}

.login-wrap .login-form .login-step-credentials .input-group:has(.parsley-error) .input-group-text,
.login-wrap .login-form .login-step-credentials .input-group:has(.parsley-error):focus-within .input-group-text {
    color: #7f8bc4 !important;
}

/* Phones: same in-field message as on PC, just a smaller font so it fits beside the placeholder. */
@media (max-width: 520px) {
    .login-wrap .login-form .login-step-credentials .usernameErrorBlock,
    .login-wrap .login-form .login-step-credentials .passwordErrorBlock {
        right: 12px;
    }

    .login-wrap .login-form .login-step-credentials .parsley-required {
        font-size: 10px;
        letter-spacing: -.1px;
    }
}

/* ---- login extras (show/hide password, Caps Lock) -------------------- */

.login-wrap .login-form .login-step-credentials .input-group {
    position: relative;
}

.login-wrap .login-form .login-step-credentials .input-group.has-eye .form-control.login_input {
    padding-right: 48px;
}

.login-wrap .login-form .login-eye {
    position: absolute;
    z-index: 5; /* Bootstrap lifts a focused input to z-index 3; the eye must stay above it */
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: #7f8bc4;
    cursor: pointer;
    transition: color .15s ease;
}

.login-wrap .login-form .login-eye:hover,
.login-wrap .login-form .login-eye:focus-visible {
    color: #3949ab;
    outline: none;
}

.login-wrap .login-form .login-caps {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #3949ab, #1e88e5);
    box-shadow: 0 4px 10px -4px rgba(57, 73, 171, .7);
    pointer-events: none;
}

.login-wrap .login-form .login-caps .fa {
    font-size: 10px;
}

.login-wrap .login-form .login-caps[hidden] {
    display: none;
}

/* the password's validation message makes room for the eye */
.login-wrap .login-form .login-step-credentials .passwordErrorBlock {
    right: 52px;
}

@media (max-width: 520px) {
    .login-wrap .login-form .login-step-credentials .passwordErrorBlock {
        right: 48px;
    }
}

/* ---- Sign In hover ---------------------------------------------------- */
/* The hover look (cyan to indigo) is unchanged. It used to be a separate layer (.login_submit::before in
   login_style.css, made for the old pill shape) fading in over the button, and the button's own blue showed as a
   mismatched edge at the corners. The same gradient is now the button's own background on hover, so there is no second
   layer and no edge. */
.login-wrap .login-form .login_submit::before,
.login-wrap .login-form .login_submit:hover::before {
    content: none;
    display: none;
}

.login-wrap .login-form .btn.btn-primary.login_submit {
    overflow: hidden;
    background-clip: border-box;
}

.login-wrap .login-form .btn.btn-primary.login_submit:hover,
.login-wrap .login-form .btn.btn-primary.login_submit:focus {
    background: linear-gradient(45deg, #0ccaff, #454fba) !important;
    filter: none;
}

/* ---- Choose-your-location dialog ------------------------------------- */
/* SweetAlert2 popup opened by locationPopup() in login.js (customClass "login-loc-popup"). Styling only. */

.swal2-container.swal2-shown {
    background: rgba(20, 28, 70, .6) !important;
}

.swal2-popup.login-loc-popup {
    width: 420px;
    max-width: calc(100vw - 32px);
    padding: 34px 32px 28px;
    border: 1px solid rgba(94, 114, 228, .14);
    border-radius: 24px;
    box-shadow: 0 40px 80px -30px rgba(20, 28, 90, .6), 0 14px 28px -18px rgba(20, 28, 90, .35);
}

/* pin in a tinted tile, same language as the lock tile on the login card */
.login-loc-popup .swal2-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #232a5c;
}

.login-loc-popup .swal2-title::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
    color: #3949ab;
    background: linear-gradient(135deg, #e8ecfb, #dbe6fb);
    box-shadow: inset 0 0 0 1px rgba(94, 114, 228, .15);
}

.login-loc-popup .swal2-content {
    padding: 0;
}

.login-loc-popup .llp-sub {
    margin: 8px 0 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: #7a83a6;
}

.login-loc-popup .swal2-select {
    width: 100%;
}

/* Select2 field, same look as the credential fields */
.login-loc-popup .select2-container {
    width: 100% !important;
    text-align: left;
}

.login-loc-popup .select2-container--bootstrap4 .select2-selection--single {
    height: 52px;
    display: flex;
    align-items: center;
    border: 1.5px solid #e3e8f6;
    border-radius: 30px !important;
    background: #f5f7fd;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-loc-popup .select2-container--bootstrap4.select2-container--open .select2-selection--single,
.login-loc-popup .select2-container--bootstrap4.select2-container--focus .select2-selection--single {
    border-color: #5e72e4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(94, 114, 228, .14);
}

.login-loc-popup .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    padding: 0 44px 0 18px;
    line-height: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #232a5c;
}

.login-loc-popup .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    font-weight: 500;
    color: #a3abc7;
}

.login-loc-popup .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 8px;
    height: 100%;
    width: 30px;
}

/* the list that opens under it (rendered outside the dialog, so it has its own class) */
.select2-dropdown.login-loc-dropdown {
    margin-top: 6px;
    border: 1.5px solid #e3e8f6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 36px -16px rgba(20, 28, 90, .45);
    z-index: 100000;
}

.login-loc-dropdown .select2-results__option {
    padding: 11px 18px;
    font-size: 14.5px;
    font-weight: 600;
    color: #3d4573;
}

.login-loc-dropdown .select2-results__option--highlighted,
.login-loc-dropdown .select2-results__option[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(110deg, #3949ab, #1e88e5);
}

/* validation message from inputValidator */
.login-loc-popup .swal2-validation-message {
    margin: 14px 0 0;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #e0364f;
    background: #fff6f8;
}

.login-loc-popup .swal2-validation-message::before {
    background: #e0364f;
}

/* buttons */
.login-loc-popup .swal2-actions {
    width: 100%;
    margin: 24px 0 0;
    gap: 12px;
    flex-direction: row-reverse;
}

.login-loc-popup .swal2-actions .btn {
    flex: 1 1 0;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    border-radius: 30px !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.login-loc-popup .swal2-actions .btn.btn-primary {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(110deg, #3949ab 0%, #1e88e5 100%) !important;
    box-shadow: 0 14px 24px -12px rgba(57, 73, 171, .75);
}

.login-loc-popup .swal2-actions .btn.btn-primary:hover,
.login-loc-popup .swal2-actions .btn.btn-primary:focus {
    background: linear-gradient(45deg, #0ccaff, #454fba) !important;
}

.login-loc-popup .swal2-actions .btn.btn-secondary {
    border: 1.5px solid #dfe4f5 !important;
    color: #5b66a8 !important;
    background: #fff !important;
    box-shadow: none;
}

.login-loc-popup .swal2-actions .btn.btn-secondary:hover,
.login-loc-popup .swal2-actions .btn.btn-secondary:focus {
    border-color: #b9c3ee !important;
    background: #f5f7fd !important;
}

@media (max-width: 480px) {
    .swal2-popup.login-loc-popup {
        padding: 28px 20px 22px;
    }
}

/* dialog polish: visible chevron, and the message stays the width of the field */
.login-loc-popup .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.login-loc-popup .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -6px 0 0 -4px;
    border: solid #7f8bc4;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.login-loc-popup .select2-container--open .select2-selection--single .select2-selection__arrow::after {
    margin-top: -2px;
    transform: rotate(225deg);
}

.login-loc-popup .swal2-validation-message {
    margin: 14px 0 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.login-loc-popup .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    display: block;
    position: absolute;
}

/* Crisp text in the dialog. A backdrop-filter on the overlay and the popup's open animation (a transform) left the
   buttons rasterised once at a fractional position, so their text stayed soft until something repainted them (a
   right-click did). The overlay is dimmed without blur, and the popup is taken off the animation layer once it is open. */
.swal2-popup.login-loc-popup {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    backface-visibility: visible;
    will-change: auto;
}

.swal2-popup.login-loc-popup.swal2-show {
    animation-fill-mode: none;
}

.login-loc-popup .swal2-actions .btn {
    transform: none;
    will-change: auto;
    backface-visibility: visible;
}

/* ---- Crisp text on the card and Sign In ------------------------------- */
/* Two things kept the card in a GPU layer sitting on a fractional pixel, which draws its text soft:
   - the fade-in animation (fadeInDown) kept its final transform after it finished (animation-fill-mode: forwards);
   - the button was promoted with will-change: transform.
   The fade-in still plays; afterwards the card is ordinary content again, so the browser snaps its text to the pixel grid. */
.login-wrap-glow ~ .login-wrap,
.row.fadeInDown {
    animation-fill-mode: backwards !important;
}

.login-wrap .login-form .btn.btn-primary.login_submit {
    will-change: auto !important;
}


/* ---- Sign-in error dialog ---------------------------------------------- */
/* Opened by error() in login-modules.js. Built on the location dialog (.login-loc-popup); only the icon tile, the
   message and the single button differ. */

.login-err-popup .swal2-title::before {
    content: "\f071";
    color: #e0364f;
    background: linear-gradient(135deg, #fff1f3, #ffe3e8);
    box-shadow: inset 0 0 0 1px rgba(224, 54, 79, .16);
}

.login-err-popup .llp-err-msg {
    margin: 10px 0 4px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    color: #5b6285;
}

.login-err-popup .swal2-actions {
    margin-top: 22px;
}

.login-err-popup .swal2-actions .btn {
    flex: 1 1 100%;
}

/* Error dialog, compact confirm-dialog look: small card, round tinted icon, short grey message, soft rounded buttons. */
.swal2-popup.login-err-popup {
    width: 360px;
    padding: 30px 26px 24px;
    border-radius: 22px;
}

.login-err-popup .swal2-title {
    gap: 14px;
    font-size: 18px;
    font-weight: 800;
}

.login-err-popup .swal2-title::before {
    content: "\f12a";
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 20px;
    background: #ffe9ec;
    box-shadow: none;
}

.login-err-popup .llp-err-msg {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: #6b7280;
}

.login-err-popup .swal2-actions {
    margin-top: 22px;
}

.login-err-popup .swal2-actions .btn {
    height: 46px;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* Cancel everywhere in these dialogs: soft filled grey, no outline. */
.login-loc-popup .swal2-actions .btn.btn-secondary {
    border: 0 !important;
    color: #2a3150 !important;
    background: #f1f3f8 !important;
}

.login-loc-popup .swal2-actions .btn.btn-secondary:hover,
.login-loc-popup .swal2-actions .btn.btn-secondary:focus {
    background: #e7eaf3 !important;
}

/* The dialog's main button is focused as soon as it opens; it should only take the hover colour when hovered. */
.login-loc-popup .swal2-actions .btn.btn-primary:focus:not(:hover) {
    background: linear-gradient(110deg, #3949ab 0%, #1e88e5 100%) !important;
}

/* Dialog main button (location chooser and error dialog): its own colour, not the Sign In gradient. */
.login-loc-popup .swal2-actions .btn.btn-primary,
.login-loc-popup .swal2-actions .btn.btn-primary:hover,
.login-loc-popup .swal2-actions .btn.btn-primary:focus,
.login-loc-popup .swal2-actions .btn.btn-primary:focus:not(:hover),
.login-loc-popup .swal2-actions .btn.btn-primary:active {
    background: linear-gradient(135deg, #5e72e4 0%, #3a4fd4 100%) !important;
    box-shadow: 0 12px 22px -12px rgba(58, 79, 212, .8);
}

.login-loc-popup .swal2-actions .btn.btn-primary:hover {
    filter: brightness(1.06);
}

/* Fully round (pill) buttons in both dialogs. */
.login-loc-popup .swal2-actions .btn,
.login-err-popup .swal2-actions .btn {
    border-radius: 999px !important;
}

/* Login (Sign In) button: same colour as the dialog buttons. Hover keeps the colour and only lifts and brightens it, so
   there is no second layer and no edge at the corners. */
.login-wrap .login-form .btn.btn-primary.login_submit,
.login-wrap .login-form .btn.btn-primary.login_submit:focus {
    background: linear-gradient(135deg, #5e72e4 0%, #3a4fd4 100%) !important;
    box-shadow: 0 14px 24px -12px rgba(58, 79, 212, .8);
    filter: none;
}

.login-wrap .login-form .btn.btn-primary.login_submit:hover {
    background: linear-gradient(135deg, #5e72e4 0%, #3a4fd4 100%) !important;
    box-shadow: 0 18px 28px -12px rgba(58, 79, 212, .9);
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.login-wrap .login-form .btn.btn-primary.login_submit:active {
    transform: translateY(0);
    filter: brightness(.97);
}

/* Highlighted / selected branch in the location list: same colour as the dialog buttons. */
.login-loc-dropdown .select2-results__option--highlighted,
.login-loc-dropdown .select2-results__option--highlighted[aria-selected],
.login-loc-dropdown .select2-results__option[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, #5e72e4 0%, #3a4fd4 100%);
}
