/*
 * Fixes for theme rules that fight vendor widgets. Loaded on every page, both locales.
 */

/*
 * The theme forces `.btn { display: inline-flex !important }`. SweetAlert2 hides its unused
 * buttons (Cancel / Deny on a plain alert) with an inline `display: none`, and the theme's
 * Swal mixin gives those buttons the `.btn` class, so a simple success alert showed
 * "OK  No  Cancel". Keep the buttons SweetAlert hid hidden.
 */
.swal2-actions .btn[style*="display: none"] {
    display: none !important;
}

/*
 * Login cover: the photo gets a dark wash (heaviest behind the brand corner) so the brand
 * badge and the white wordmark stay readable on any background image.
 */
.auth-cover-media {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.auth-cover-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-cover-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(15, 12, 41, .55) 0%, rgba(15, 12, 41, .15) 35%, rgba(15, 12, 41, 0) 60%),
        rgba(15, 12, 41, .25);
    pointer-events: none;
}

.auth-brand-badge {
    gap: .625rem;
    text-decoration: none;
}
.auth-brand-badge .auth-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.auth-brand-badge .auth-brand-name {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--bs-heading-color, #2f2b3d);
}
@media (min-width: 992px) {
    .auth-brand-badge {
        padding: .5rem 1.125rem .5rem .625rem;
        border-radius: 999px;
        background: rgba(15, 12, 41, .45);
        border: 1px solid rgba(255, 255, 255, .14);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    }
    [dir="rtl"] .auth-brand-badge {
        padding: .5rem .625rem .5rem 1.125rem;
    }
    .auth-brand-badge .auth-brand-name {
        color: #fff;
    }
}
