html,
body,
body > .wrapper,
body .content-wrapper,
body .content-wrapper > .content {
    background: #14091f !important;
}

body .wrapper,
body .content-wrapper,
body .content-wrapper > .content {
    min-height: 100vh !important;
}

body .content-wrapper {
    margin-bottom: 0 !important;
}

body .content-wrapper > .content {
    padding: 0 !important;
}

.halloween-auth-page {
    --halloween-orange: #f36b16;
    --halloween-orange-dark: #d94f08;
    position: relative;
    min-height: calc(100vh - 70px);
    padding: clamp(24px, 4vw, 52px) clamp(14px, 3vw, 38px);
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 8%, rgba(112, 54, 157, .55), transparent 30%),
        radial-gradient(circle at 92% 90%, rgba(243, 107, 22, .18), transparent 26%),
        linear-gradient(145deg, #14091f, #2d1247 55%, #190b27);
    color: #2b1835;
    direction: ltr;
}

.halloween-auth-page::before,
.halloween-auth-page::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.halloween-auth-page::before { top: -260px; right: -70px; }
.halloween-auth-page::after { bottom: -280px; left: -80px; }

.halloween-auth-page > .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0;
}

.halloween-auth-page > .container > .row { align-items: center; }

.halloween-auth-page > .container > .row > [class*="col-"]:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The isolated iframe prevents application CSS from altering the campaign scene. */
.halloween-campaign-scene {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1376 / 768;
    margin: 0 auto;
    border: 1px solid rgba(199, 132, 234, .28);
    border-radius: 24px;
    box-shadow: none;
    background: #29123c;
}

.halloween-auth-form {
    position: relative;
    width: 100%;
    padding: clamp(24px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(199, 132, 234, .28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(243, 107, 22, .18), transparent 28%),
        linear-gradient(145deg, rgba(55, 24, 76, .98), rgba(27, 11, 40, .99));
    box-shadow: 0 22px 55px rgba(5, 1, 10, .34);
    color: #f4eaf8;
}

.halloween-auth-form::before {
    content: '';
    position: absolute;
    top: -75px;
    right: -75px;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 178, 111, .14);
    border-radius: 50%;
    box-shadow: 0 0 55px rgba(243, 107, 22, .08);
    pointer-events: none;
}

.halloween-auth-form > * { position: relative; z-index: 1; }

.halloween-auth-form-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.halloween-auth-form-heading img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    padding: 7px 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .92);
    object-fit: contain;
}

.halloween-auth-form h2 {
    margin-bottom: 12px !important;
    color: #fff !important;
    text-align: center;
}

.halloween-auth-form > p {
    color: #cdbbd5 !important;
    text-align: center;
}

.halloween-auth-form a,
.halloween-auth-form a:visited { color: var(--halloween-orange-dark) !important; }

.halloween-auth-form a:hover,
.halloween-auth-form a:focus { color: #ffbd75 !important; }

.halloween-auth-form form { border-top-color: rgba(222, 190, 235, .18) !important; }

.halloween-auth-form .control-label {
    color: #f0e5f4 !important;
    font-weight: 600;
}

.halloween-auth-form .required { color: #d74413 !important; }

.halloween-auth-form input.form-control {
    height: 48px;
    border: 1px solid rgba(199, 166, 214, .36) !important;
    border-radius: 10px;
    background: rgba(13, 5, 21, .58) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.halloween-auth-form input.form-control::placeholder {
    color: #a994b4 !important;
    opacity: 1;
}

.halloween-auth-form input.form-control:focus {
    border-color: var(--halloween-orange) !important;
    box-shadow: 0 0 0 3px rgba(243, 107, 22, .14) !important;
}

.halloween-auth-form .help-box-input { margin-top: 8px; }

.halloween-auth-form button.btn.btn-info {
    min-height: 48px;
    border: 1px solid var(--halloween-orange-dark) !important;
    border-radius: 11px;
    background: linear-gradient(100deg, #e9580d, #f88721) !important;
    box-shadow: 0 9px 22px rgba(218, 79, 8, .24);
    color: #fff !important;
    font-weight: 700;
    text-shadow: none !important;
}

.halloween-auth-form button.btn.btn-info:hover,
.halloween-auth-form button.btn.btn-info:focus,
.halloween-auth-form button.btn.btn-info:active {
    border-color: #b94005 !important;
    background: linear-gradient(100deg, #d84c06, #ef7414) !important;
    color: #fff !important;
}

.halloween-auth-form .form-group > a {
    display: block;
    text-decoration: none;
}

.halloween-auth-form button.btn.btn-outline.btn-muted {
    min-height: 48px;
    border: 1px solid rgba(197, 143, 226, .62) !important;
    border-radius: 11px;
    background: rgba(255, 255, 255, .06) !important;
    box-shadow: none !important;
    color: #f5eaf9 !important;
    font-weight: 600;
    text-shadow: none !important;
}

.halloween-auth-form button.btn.btn-outline.btn-muted:hover,
.halloween-auth-form button.btn.btn-outline.btn-muted:focus,
.halloween-auth-form button.btn.btn-outline.btn-muted:active {
    border-color: #d296ef !important;
    background: rgba(210, 150, 239, .13) !important;
    color: #fff !important;
}

.halloween-auth-form button.btn svg {
    margin-right: 7px;
    vertical-align: middle;
}

.halloween-auth-form .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 991px) {
    .halloween-auth-page { padding-top: 22px; padding-bottom: 28px; }
    .halloween-campaign-scene {
        height: auto;
        aspect-ratio: 1376 / 768;
        margin: 0 auto 18px;
    }
}

@media (max-width: 575px) {
    .halloween-auth-page { min-height: 100vh; padding: 14px 10px 24px; }
    .halloween-campaign-scene { border-radius: 18px; }
    .halloween-auth-form { padding: 20px 16px; border-radius: 18px; }
    .halloween-auth-form-heading { margin-bottom: 10px; }
    .halloween-auth-form-heading img { width: 135px; padding: 6px 10px; }
    .halloween-auth-form h2 { font-size: 22px; }
}

@media (max-width: 370px) {
    .halloween-auth-form .g-recaptcha {
        width: 304px;
        margin-bottom: -9px;
        transform: scale(.9);
        transform-origin: left top;
    }
}

@media (max-width: 330px) {
    .halloween-auth-form .g-recaptcha {
        margin-bottom: -16px;
        transform: scale(.77);
    }
}
