.dark .layout-page {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.dark .layout-page,
.dark .box-donate,
:is(.dark .bg-ava),
.dark .modal-content {
    background-color: transparent !important;
}

.guest-auth-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 48px);
    box-sizing: border-box;
    background:
        linear-gradient(rgba(3, 3, 9, .76), rgba(3, 3, 9, .88)),
        url("/assets/panel/images/auth/bg_4.png") center/cover fixed no-repeat;
}

.guest-auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(420px, 1fr);
    width: min(980px, 100%);
    overflow: hidden;
    border: 1px solid rgba(137, 120, 168, .22);
    border-radius: 16px;
    background: rgba(6, 6, 14, .97);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.guest-auth-promo {
    position: relative;
    min-height: 590px;
    display: flex;
    flex-direction: column;
    padding: 42px;
    overflow: hidden;
    border-left: 1px solid rgba(137, 120, 168, .18);
    background:
        linear-gradient(155deg, rgba(7, 7, 15, .72), rgba(8, 4, 10, .94)),
        url("/assets/site/templates/new/img/socials.png") center/cover no-repeat;
}

.guest-auth-leaf {
    position: absolute;
    z-index: 2;
    width: 150px;
    height: 110px;
    pointer-events: none;
    background: center/contain no-repeat;
    opacity: .48;
    filter: saturate(1.2) hue-rotate(305deg);
}

.guest-auth-leaf--one {
    top: 7%;
    right: -28px;
    background-image: url("/assets/panel/images/auth/leaf-1.png");
    animation: guestLeafOne 7s ease-in-out infinite alternate;
}

.guest-auth-leaf--two {
    bottom: 4%;
    left: -30px;
    background-image: url("/assets/panel/images/auth/leaf-2.png");
    animation: guestLeafTwo 8.5s ease-in-out infinite alternate;
}

@keyframes guestLeafOne {
    from { transform: translate3d(0, 0, 0) rotate(-5deg); }
    to { transform: translate3d(-22px, 30px, 0) rotate(8deg); }
}

@keyframes guestLeafTwo {
    from { transform: translate3d(0, 0, 0) rotate(4deg); }
    to { transform: translate3d(28px, -24px, 0) rotate(-9deg); }
}

.guest-auth-promo::after {
    content: "";
    position: absolute;
    inset: auto -90px -110px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 39, 72, .12);
    filter: blur(70px);
}

.guest-auth-logo {
    position: relative;
    z-index: 1;
    width: 132px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.guest-auth-promo-copy {
    position: relative;
    z-index: 1;
    margin: auto 0;
}

.guest-auth-eyebrow,
.guest-auth-kicker {
    color: #ff3456;
    font: 700 11px/1.2 "Prasia", Georgia, serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.guest-auth-promo h1 {
    max-width: 420px;
    margin: 14px 0 14px;
    color: #fff;
    font: 700 clamp(27px, 3vw, 40px)/1.12 "Prasia", Georgia, serif;
}

.guest-auth-promo p {
    max-width: 430px;
    margin: 0;
    color: rgba(218, 211, 229, .78);
    font: 14px/1.65 "Prasia", Georgia, serif;
}

.guest-auth-promo ul {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.guest-auth-promo li {
    color: rgba(239, 234, 246, .9);
    font: 13px/1.45 "Prasia", Georgia, serif;
}

.guest-auth-promo li::before {
    content: "✓";
    margin-right: 10px;
    color: #ff3456;
    font-weight: 800;
}

.guest-auth-back {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    color: rgba(225, 217, 236, .72) !important;
    font: 12px "Prasia", Georgia, serif;
    transition: color .2s ease;
}

.guest-auth-back:hover {
    color: #fff !important;
}

.guest-auth-card.box {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 44px 48px 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(15, 15, 24, .99), rgba(8, 8, 15, .99)) !important;
    box-shadow: none !important;
    color: #f4f0ff;
}

.guest-auth-card.box::before {
    display: none !important;
    content: none !important;
}

.guest-register-card [data-field-selector="isPasswordHidden"] {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    margin: 0;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 7px;
    text-align: right;
    white-space: nowrap;
}

.guest-register-card .form-label:has([data-field-selector="isPasswordHidden"]) {
    position: relative;
    display: block;
    width: 100%;
}

.guest-register-card [data-field-selector="isPasswordHidden"] .form-label {
    margin: 0 !important;
    text-align: right;
}

.guest-auth-title {
    margin: 8px 0 0 !important;
    color: #f4f0ff !important;
    font-family: "Prasia", Georgia, serif;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-align: left;
    text-transform: uppercase;
}

.guest-auth-description {
    display: block;
    margin: 8px 0 0 !important;
    color: rgba(198, 188, 214, 0.78) !important;
    font-family: "Prasia", Georgia, serif;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.guest-auth-heading {
    margin-bottom: 28px;
}

.guest-auth-card hr,
.guest-auth-card .divider {
    display: none !important;
}

.guest-auth-card form {
    margin: 0 !important;
}

.guest-auth-card label,
.guest-auth-card .form-label {
    color: rgba(222, 216, 232, 0.88) !important;
    font-family: "Prasia", Georgia, serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.guest-auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.guest-auth-card select {
    min-height: 42px !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    border-radius: 7px !important;
    background: #090910 !important;
    color: #f4f0ff !important;
    font-family: "Prasia", Georgia, serif;
    font-size: 14px !important;
    box-shadow: none !important;
}

.guest-auth-card input:focus,
.guest-auth-card select:focus {
    border-color: rgba(255, 39, 72, 0.38) !important;
    box-shadow: 0 0 0 2px rgba(255, 39, 72, 0.1) !important;
}

.guest-auth-card a {
    color: rgba(255, 104, 128, 0.95);
}

.guest-auth-card #btn_login {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 18px auto 0 !important;
    padding: 0 14px !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 39, 72, 0.42) !important;
    border-radius: 5px !important;
    background: linear-gradient(180deg, #2a1219, #13090d) !important;
    color: #fff !important;
    font-family: "Prasia", Georgia, serif;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    box-shadow: none !important;
}

.guest-auth-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    color: rgba(198, 188, 214, .7);
    font: 13px "Prasia", Georgia, serif;
}

.guest-auth-switch a {
    font-weight: 700;
}

.guest-auth-card #btn_login svg {
    color: rgba(255, 64, 92, 0.94);
    fill: currentColor;
}

.guest-auth-card #btn_login:hover {
    border-color: rgba(255, 39, 72, 0.32) !important;
    background: linear-gradient(180deg, #32141d, #190b10) !important;
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(255, 39, 72, 0.05), 0 0 12px rgba(255, 39, 72, 0.12) !important;
}

@media (max-width: 768px) {
    .guest-auth-page {
        min-height: auto;
        padding: 12px 0;
    }

    .guest-auth-shell {
        grid-template-columns: 1fr;
        width: 100%;
        border-radius: 12px;
    }

    .guest-auth-promo {
        min-height: 190px;
        padding: 24px;
        border-left: 0;
        border-bottom: 1px solid rgba(137, 120, 168, .18);
    }

    .guest-auth-card {
        order: 2;
    }

    .guest-auth-promo {
        order: 1;
    }

    .guest-auth-logo {
        width: 100px;
        height: 44px;
    }

    .guest-auth-promo-copy {
        margin: 22px 0 0;
    }

    .guest-auth-promo h1 {
        margin: 8px 0;
        font-size: 25px;
    }

    .guest-auth-promo p,
    .guest-auth-promo ul {
        display: none;
    }

    .guest-auth-back {
        margin-top: 18px;
    }

    .guest-auth-card.box {
        padding: 30px 20px 24px !important;
    }
}

@media (min-width: 769px) {
    .cabinet-workspace:has(.guest-auth-page) {
        overflow: clip;
    }
}

/* Standalone authentication pages, based on the donor layout */
.guest-auth-page {
    padding: 24px 16px;
    background:
        radial-gradient(circle at 50% 42%, rgba(39, 10, 17, .18), transparent 48%),
        linear-gradient(rgba(2, 2, 5, .79), rgba(2, 2, 5, .9)),
        url("/assets/panel/images/auth/bg_4.png") center/cover fixed no-repeat;
}

.guest-auth-shell {
    position: relative;
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    width: min(928px, calc(100vw - 32px));
    min-height: 700px;
    border: 1px solid rgba(255, 52, 86, .19);
    border-top-width: 2px;
    border-radius: 12px;
    background: rgba(6, 6, 10, .96);
}

.guest-auth-card.box {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    padding: 20px 54px 28px !important;
    background: rgba(8, 8, 12, .98) !important;
}

.guest-auth-home {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    min-height: 32px;
    padding: 0 2px;
    color: rgba(230, 225, 236, .76) !important;
    font: 700 14px/1 "Prasia", Georgia, serif;
    letter-spacing: .01em;
    transition: color .2s ease, transform .2s ease;
}

.guest-auth-home-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    background: #ff3456;
    -webkit-mask: url("/assets/panel/images/auth/back-button.png") center/contain no-repeat;
    mask: url("/assets/panel/images/auth/back-button.png") center/contain no-repeat;
    transition: transform .2s ease, background-color .2s ease;
}

.guest-auth-home:hover {
    color: #fff !important;
}

.guest-auth-home:hover .guest-auth-home-icon {
    transform: translateX(-3px);
    background-color: #ff5b76;
}

.guest-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-top: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.guest-auth-tabs a {
    padding: 15px 10px 13px;
    border-bottom: 2px solid transparent;
    color: rgba(220, 213, 229, .55) !important;
    font: 700 14px/1.2 "Prasia", Georgia, serif;
    text-align: center;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.guest-auth-tabs a:hover {
    color: #fff !important;
    background: rgba(255, 52, 86, .035);
}

.guest-auth-tabs a.is-active {
    border-bottom-color: #ff3456;
    color: #ff4b69 !important;
}

.guest-auth-heading {
    width: 100%;
    margin: 56px auto 25px;
    text-align: center;
}

.guest-register-card .guest-auth-heading {
    margin-top: 27px;
    margin-bottom: 20px;
}

.guest-auth-title {
    font-size: 28px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
}

.guest-auth-description {
    text-align: center;
}

.guest-auth-card form {
    width: 100%;
}

.guest-login-card form {
    margin-top: 0 !important;
}

.guest-auth-card #btn_login {
    margin-top: 20px !important;
}

.guest-auth-switch {
    margin-top: 18px;
}

.guest-auth-socials {
    margin-top: auto;
    padding-top: 28px;
    text-align: center;
}

.guest-auth-socials h2 {
    margin: 0 0 13px;
    color: rgba(226, 219, 235, .68);
    font: 700 12px/1.2 "Prasia", Georgia, serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.guest-auth-social-list {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.guest-auth-social-list a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(137, 120, 168, .24);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(20, 20, 31, .94), rgba(10, 10, 17, .96));
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.guest-auth-social-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 52, 86, .5);
    background: linear-gradient(180deg, rgba(40, 17, 25, .95), rgba(18, 9, 14, .97));
    box-shadow: 0 7px 18px rgba(0, 0, 0, .28);
}

.guest-auth-social-list img {
    width: 23px;
    height: 23px;
    display: block;
    object-fit: contain;
}

.guest-auth-media {
    position: relative;
    min-width: 0;
    min-height: 700px;
    overflow: hidden;
    border-left: 1px solid rgba(255, 52, 86, .12);
    background: #030305;
}

.guest-auth-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 48%, rgba(3, 3, 6, .22) 76%, rgba(3, 3, 6, .58) 100%),
        linear-gradient(90deg, rgba(3, 3, 6, .5), transparent 24%, transparent 78%, rgba(3, 3, 6, .28)),
        linear-gradient(180deg, rgba(3, 3, 6, .2), transparent 18%, transparent 70%, rgba(3, 3, 6, .55));
    box-shadow:
        inset 28px 0 38px rgba(3, 3, 6, .34),
        inset -12px 0 22px rgba(3, 3, 6, .18),
        inset 0 20px 28px rgba(3, 3, 6, .18),
        inset 0 -30px 38px rgba(3, 3, 6, .34);
}

.guest-auth-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .guest-auth-page {
        min-height: 100dvh;
        padding: 14px 10px;
        background: #05050a;
    }

    .guest-auth-shell {
        grid-template-columns: 1fr;
        width: min(100%, 430px);
        min-height: 0;
        overflow: hidden;
    }

    .guest-auth-card.box {
        min-height: 0;
        padding: 18px 22px 26px !important;
        order: 1;
    }

    .guest-auth-media {
        display: none !important;
    }

    .guest-auth-heading,
    .guest-register-card .guest-auth-heading {
        margin: 28px auto 22px;
    }
}
