
:root {
    --besa-bg: #090a0e;
    --besa-red: #d7192d;
    --besa-red-hover: #b81122;
    --besa-field: #15161b;
    --besa-border: #292a31;
    --besa-text: #ffffff;
    --besa-muted: #9b9ca4;
}

html:has(body.besa-gate-page),
body.besa-gate-page {
    min-height: 100%;
    margin: 0;
    background: var(--besa-bg);
}

body.besa-gate-page {
    overflow-x: hidden;
}

body.besa-gate-page #wpadminbar {
    display: none !important;
}

body.besa-gate-page #besa-gate-root,
body.besa-gate-page .elementor,
body.besa-gate-page .elementor-section-wrap,
body.besa-gate-page .elementor-element,
body.besa-gate-page .e-con,
body.besa-gate-page .e-con-inner {
    max-width: none;
}

.besa-login-widget,
.besa-login-widget * {
    box-sizing: border-box;
}

.besa-login-widget {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--besa-bg);
    color: var(--besa-text);
    font-family: Montserrat, Poppins, Inter, Arial, sans-serif;
    isolation: isolate;
}

.besa-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.besa-scene-image,
.besa-scene-overlay,
.besa-lightning,
.besa-particles {
    position: absolute;
    inset: 0;
}

.besa-scene-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.04);
}

.besa-scene-overlay {
    background:
        radial-gradient(circle at 50% 44%, rgba(8, 16, 26, 0.15), rgba(6, 8, 12, 0.78) 62%, rgba(2, 4, 8, 0.95) 100%),
        linear-gradient(90deg, rgba(215, 25, 45, 0.06), transparent 18%, transparent 82%, rgba(215, 25, 45, 0.08));
}

.besa-hud-corner {
    position: absolute;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255, 45, 71, 0.8);
    opacity: 0.7;
    filter: drop-shadow(0 0 12px rgba(215, 25, 45, 0.45));
}

.besa-hud-corner--tl { top: 28px; left: 28px; border-right: 0; border-bottom: 0; }
.besa-hud-corner--tr { top: 28px; right: 28px; border-left: 0; border-bottom: 0; }
.besa-hud-corner--bl { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.besa-hud-corner--br { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }

.besa-lightning {
    opacity: .55;
    mix-blend-mode: screen;
    pointer-events: none;
}

.besa-lightning::before,
.besa-lightning::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 230px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(220,235,255,.98), rgba(190,215,255,0));
    filter: drop-shadow(0 0 14px rgba(187, 213, 255, .95));
    clip-path: polygon(45% 0, 63% 17%, 39% 35%, 67% 52%, 32% 71%, 57% 100%, 0 78%, 26% 55%, 0 34%, 31% 15%);
    animation: besa-flicker 6s infinite ease-in-out;
}

.besa-lightning-left::before { left: 14%; top: 8%; animation-delay: 0s; }
.besa-lightning-left::after { left: 19%; top: 12%; height: 180px; animation-delay: 1.6s; }
.besa-lightning-right::before { right: 14%; top: 10%; animation-delay: 2.2s; }
.besa-lightning-right::after { right: 18%; top: 16%; height: 170px; animation-delay: 3.2s; }

.besa-particles {
    pointer-events: none;
}

.besa-particles span {
    position: absolute;
    display: block;
    width: var(--size, 3px);
    height: var(--size, 3px);
    left: var(--left, 50%);
    top: var(--top, 50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,115,128,.95) 0%, rgba(215,25,45,.8) 42%, rgba(255, 98, 116, 0) 75%);
    box-shadow: 0 0 10px rgba(215,25,45,.4);
    opacity: .55;
    animation: besa-float var(--dur, 11s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.besa-login-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.besa-login-panel {
    position: relative;
    padding: 34px 34px 28px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(11,15,24,.82), rgba(7,9,15,.92));
    box-shadow: 0 35px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 40px rgba(215, 25, 45, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.besa-login-panel::before,
.besa-login-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.besa-login-panel::before {
    inset: -12px;
    border: 1px solid rgba(215, 25, 45, .18);
    opacity: .65;
    filter: blur(.2px);
}

.besa-login-panel::after {
    background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 30%, transparent 72%, rgba(215,25,45,.12));
    opacity: .8;
}

.besa-awards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 34px;
    color: #f2f2f4;
}

.besa-award-icon {
    display: block;
    width: 62px;
    height: 76px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask-image: var(--besa-award-image);
    mask-image: var(--besa-award-image);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.besa-logo-wrap {
    margin: 0 0 24px;
}

.besa-logo {
    display: inline-block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.besa-heading {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.besa-subheading {
    margin: 0 0 30px;
    color: var(--besa-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

.besa-subheading p { margin: 0; color: inherit; }

.besa-login-form {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform-origin: center;
}

.besa-field {
    position: relative;
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    overflow: hidden;
    background: rgba(21, 22, 27, .88);
    border: 1px solid var(--besa-border);
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.besa-field:focus-within {
    border-color: var(--besa-red);
    box-shadow: 0 0 0 3px rgba(215, 25, 45, .12);
}

.besa-field-icon,
.besa-password-toggle {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a8c95;
}

.besa-field-icon svg,
.besa-password-toggle svg { width: 100%; height: 100%; display: block; }

.besa-field input {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.besa-field input::placeholder {
    color: #777982;
    opacity: 1;
}

.besa-password-toggle {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.besa-password-toggle:focus-visible {
    outline: 2px solid var(--besa-red);
    outline-offset: 3px;
}

.besa-eye-closed { display: none !important; }
.besa-password-toggle.is-visible .besa-eye-open { display: none !important; }
.besa-password-toggle.is-visible .besa-eye-closed { display: block !important; }

.besa-error-message {
    min-height: 0;
    color: #ff7380;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
}

.besa-error-message:not(:empty) {
    padding: 10px 12px;
    background: rgba(215, 25, 45, .10);
    border-radius: 8px;
}

.besa-submit {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 22px;
    margin: 2px 0 0;
    color: #fff;
    background: linear-gradient(180deg, #ea2037 0%, #b70f23 100%);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(215, 25, 45, .22);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.besa-submit:hover,
.besa-submit:focus {
    color: #fff;
    background: linear-gradient(180deg, #ff2d47 0%, #a90b1d 100%);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(215, 25, 45, .28);
}

.besa-submit:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 3px; }
.besa-submit:disabled { opacity: .72; cursor: wait; transform: none; }
.besa-submit svg { width: 18px; height: 18px; }

.besa-bottom-logo-wrap {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.besa-bottom-logo {
    width: 120px;
    max-width: 100%;
    opacity: .92;
    height: auto;
}

.besa-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 18px;
    background: rgba(6, 8, 12, .82);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 5;
}

.besa-login-form.is-loading .besa-loading-overlay {
    opacity: 1;
    visibility: visible;
}

.besa-loading-card {
    width: 100%;
    max-width: 320px;
    padding: 22px 20px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18,22,30,.96), rgba(9,11,16,.96));
    box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset;
    text-align: center;
}

.besa-loader-ring {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    position: relative;
}

.besa-loader-ring span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255,255,255,.88);
    border-right-color: rgba(215,25,45,.8);
    animation: besa-spin 1.2s linear infinite;
}

.besa-loader-ring span:nth-child(2) {
    inset: 7px;
    animation-duration: .95s;
    animation-direction: reverse;
    border-top-color: rgba(255,255,255,.55);
    border-right-color: rgba(215,25,45,.65);
}

.besa-loader-ring span:nth-child(3) {
    inset: 14px;
    animation-duration: .8s;
    border-top-color: rgba(255,255,255,.45);
    border-right-color: rgba(215,25,45,.55);
}

.besa-loading-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.besa-loading-subtitle {
    margin-top: 6px;
    color: #a6a9b6;
    font-size: 13px;
    line-height: 1.6;
}

.besa-loading-steps {
    margin-top: 16px;
    display: grid;
    gap: 8px;
    text-align: left;
}

.besa-loading-steps span {
    position: relative;
    padding-left: 18px;
    color: #8d90a0;
    font-size: 13px;
    line-height: 1.4;
    transition: color .2s ease, opacity .2s ease;
}

.besa-loading-steps span::before {
    content: '';
    position: absolute;
    left: 0;
    top: .42em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}

.besa-loading-steps span.is-active { color: #fff; }
.besa-loading-steps span.is-active::before { background: #ff314a; box-shadow: 0 0 10px rgba(215,25,45,.55); }
.besa-loading-steps span.is-done { color: #c8ccd7; }
.besa-loading-steps span.is-done::before { background: #ffffff; }

.besa-login-form.besa-shake {
    animation: besa-shake .48s cubic-bezier(.36,.07,.19,.97) both;
}

.besa-login-form.besa-shake .besa-field {
    border-color: #d7192d;
}

@keyframes besa-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(5px); }
    30%, 50%, 70% { transform: translateX(-9px); }
    40%, 60% { transform: translateX(9px); }
}

@keyframes besa-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes besa-float {
    0% { transform: translate3d(0, 0, 0) scale(.8); opacity: .15; }
    10% { opacity: .65; }
    100% { transform: translate3d(calc(var(--drift, 0px)), calc(-1 * var(--rise, 180px)), 0) scale(1.2); opacity: 0; }
}

@keyframes besa-flicker {
    0%, 85%, 100% { opacity: .05; }
    2%, 6%, 10%, 40% { opacity: .75; }
    4%, 8% { opacity: .3; }
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767px) {
    .besa-login-widget { padding: 30px 18px; }
    .besa-hud-corner { width: 42px; height: 42px; }
    .besa-login-panel { padding: 26px 20px 22px; border-radius: 18px; }
    .besa-awards { gap: 12px; margin-bottom: 28px; }
    .besa-award-icon { width: 54px; height: 66px; }
    .besa-heading { font-size: 30px; }
    .besa-subheading { font-size: 14px; margin-bottom: 25px; }
    .besa-field, .besa-submit { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    .besa-login-form.besa-shake,
    .besa-lightning::before,
    .besa-lightning::after,
    .besa-particles span,
    .besa-loader-ring span { animation: none; }
    .besa-submit,
    .besa-field,
    .besa-loading-overlay { transition: none; }
}
