#captive-background, body {
    /*
    background: #B9B3AE;
    background: -webkit-linear-gradient(top right, #B9B3AE, #233B44);
    background: -moz-linear-gradient(top right, #B9B3AE, #233B44);
    background: linear-gradient(to bottom left, #B9B3AE, #233B44);
    */
    background: black;
}

.captive-button-submit {
    /* width: 100%; */
    padding: 0.8rem 0.8rem 0.8rem 1.6rem;
    border-radius: 2rem;

    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.98rem;
    line-height: calc(1.75 / 1.125);

    border: 2px solid #222;

    /* background: #0b161c;
    color: white; */
}

.captive-button-submit:not([disabled]):hover {
    background: #222;
    color: white;
}

.error-message {
    padding: 0 0.25rem;

    color: #d20a11;

    font-size: 0.875rem;
    /* 14px */
    line-height: 1.25rem;
    text-align: left;
}

.error-message span {
    font-weight: 500;
}

#captive-message {
    font-weight: 400;
    margin-top: 0.5rem;
    /* 8px */
}

.captive-message-error {
    color: #d20a11;
}

.captive-message-success {
    color: rgb(22 163 74);
}

.captive-title {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 2rem
        /* 24px */
    ;
    line-height: 2rem
        /* 32px */
    ;
}

#captive-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    margin: 0 auto;
}

.captive-mask {
    text-align: center;
    padding: 1.2rem 2rem 1rem 2rem;

    @media (min-width: 768px) {
        padding: 2rem 4rem;
    }

    background: #fff;

    border-radius: 1rem;
    width: 90%;
}

@media (min-width: 640px) {
    .captive-mask {
        --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        --tw-shadow-colored: 0 10px 15px -3px black, 0 4px 6px -4px black;
        box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);

        width: 65%;
    }
}

@media (min-width: 1280px) {
    .captive-mask {
        width: 50%;
    }
}

#banner-logo {
    /* filter: brightness(0) invert(1); */

    width: 40%;
}

@media (min-width: 640px) {
    #banner-logo {
        width: 25%;
    }
}

@media (min-width: 1280px) {
    #banner-logo {
        width: 15%;
    }
}

.captive-hr {
    width: 100%;
    opacity: 30%;
}

.captive-form {
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/*
    ICONS
    ---
    Provided through Iconify
*/
/* Global icon size. Can be overridden here or onto each icon */
.captive-icon {
    font-size: 1.25rem !important
        /* 20px */
    ;
    line-height: 1.3rem;
}

/* Absolutely positioned on the left of the input group */
#captive-icon-mail {
    display: none;
    position: absolute;

    left: 1rem;
    /* 4px */
    top: 0.7rem;
    /* 4px */
}

/* The icon is used as a button to show the password, hence the cursor pointer */
#captive-icon-password {
    cursor: pointer;
}

/*
    INPUT TAGS
    ---
    The input masks used by the form.
*/
/* "Input groups" are like wrappers. They determine the bg color and the shape. */
.captive-input-group {
    /*
    background-color: rgb(212 212 212);

    border-radius: 0.375rem;
    */
    border-bottom: 1px solid #777;
}

/* On error, it can be customized */
.captive-input-group-error {
    background-color: rgb(185 28 28 / 0.1);
}

/* Label on top of the input. Not always used. */
.captive-input-label {
    font-size: 0.875rem
        /* 14px */
    ;
    line-height: 1.25rem
        /* 20px */
    ;

    padding-left: 0.125rem
        /* 2px */
    ;
    padding-right: 0.125rem
        /* 2px */
    ;

    color: rgb(107 114 128)
        /* #6b7280 */
    ;
}

/* The true input tag */
.captive-input {
    padding-top: 0.6rem
        /* 14px */
    ;
    padding-bottom: 0.6rem
        /* 14px */
    ;
    padding-left: 0.375rem
        /* 48px */
    ;
    border-radius: 0.375rem
        /* 6px */
    ;

    /* We disable the background because there is the group underneath which provides it */
    background-color: transparent;
    color: black;

    /* A little more weight. For accessibility. */
    font-weight: 500;

    /* For the halo / ring. By default is turned off */
    box-shadow: none;

    /* Outlines are disabled to prevent weird transitions */
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.captive-input::placeholder {
    letter-spacing: 0.08rem;
}

/* When the mask is focused draw a halo / ring around it (color is defined further) */
.captive-input:focus {
    /* No outline, we provide it ourselves */
    /*
    outline: 2px solid transparent;
    outline-offset: 2px;
    */

    /* 4px halo / ring through a shadow, color */
    /*
    box-shadow: 0 0 0 4px var(--ring-color);
    */
}

/* Default ring: neutral color. Highlights component focus (accessibility / UX). */
.captive-input-default:focus {
    /*
    --ring-color: rgb(212 212 212 / 0.5);
    */
}

/* Error ring: red color. Highlights errors. */
.captive-input-error:focus {
    /*
    --ring-color: rgb(185 28 28 / 0.2);
    */
}

/* De-emphasize the placeholder text a little */
.captive-input::placeholder {
    color: rgb(82 82 82);
    font-weight: 300;
}

.captive-form-error-message {
    color: #d20a11;
    display: flex;
    align-items: center;
    font-size: 0.75rem
        /* 12px */
    ;
    line-height: 1rem
        /* 16px */
    ;
    justify-content: flex-start;
}

.captive-form-error-message span {
    font-weight: 600;
}

/*
    CHECKBOXES
    ---
    For confirmation and stuff
*/
.captive-checkboxes-container-multiple {
    text-align: start;
}

.captive-checkboxes-container-single {
    text-align: start;
}

.captive-checkbox {
    font-size: 0.875rem
        /* 14px */
    ;
    line-height: 1.25rem
        /* 20px */
    ;
    padding-left: 0.125rem
        /* 2px */
    ;
    padding-right: 0.125rem
        /* 2px */
    ;
}

.captive-checkbox-label {
    font-size: 0.8rem;
    line-height: 1rem
        /* 16px */
    ;
}

.captive-checkbox-label>i {
    opacity: 0.8;
    font-weight: bold;
}

.captive-checkbox> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem
            /* 4px */
            * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem
            /* 4px */
            * calc(1 - var(--tw-space-x-reverse)));
}
.captive-asterisk {
    margin-left: 0.2rem;
    color: #d20a11;
    font-size: 1.1rem;
}

/*
    LANGUAGE SELECTORS
    ---
    Style for language selectors
 */
#captive-lang-selector-wide {
    gap: 0.5rem;
    justify-content: center;
}

#captive-lang-selector-narrow {
    appearance: none;
    width: 100%;
    text-align: center;
    cursor: pointer;

    background-color: transparent;
    color: white;
    font-weight: 500;
    opacity: 0.6;

    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

#captive-lang-selector-narrow:hover {
    opacity: 1;
}

/*
    MODAL
    ---
    For the terms of use (ToS)
 */
/* Transition / animation: to / from 0 opacity to full opacity (implied) */
.captive-modal-fade-enter-from,
.captive-modal-fade-leave-to {
    opacity: 0;
}

.captive-modal-fade-enter-active,
.captive-modal-fade-leave-active {
    transition: 0.25s ease all;
    /* Transition / animation length */
}

/* Modal overlay background (default: semitransparent black) */
.captive-modal-wrapper {
    background: rgba(0, 0, 0, 0.2);
}

.captive-modal {
    background-color: white;

    border-radius: 0.375rem
        /* 6px */
    ;
    margin-top: 2.5rem
        /* 40px */
    ;
    margin-bottom: 2.5rem
        /* 40px */
    ;
    max-height: 80%;

    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.captive-modal>header {
    color: white;

    padding: 0.5rem 1rem;
    /* 8px, 16px */
    border-top-left-radius: 0.375rem
        /* 6px */
    ;
    border-top-right-radius: 0.375rem
        /* 6px */
    ;

    justify-content: center;

    @media (min-width: 768px) {
        justify-content: space-between;
    }

    display: flex;

    align-items: center;
}

.captive-modal-body {
    padding: 1rem
        /* 16px */
    ;
    color: black;
}

.captive-modal>footer {
    display: flex;
    justify-content: center;

    @media (min-width: 768px) {
        justify-content: flex-end;
    }

    gap: 0.5rem
    /* 8px */
    ;
    padding-left: 0.5rem
    /* 8px */
    ;
    padding-right: 0.5rem
    /* 8px */
    ;
    padding-bottom: 0.5rem
    /* 8px */
    ;
}

.captive-modal-button-close {
    width: 100%;

    @media (min-width: 768px) {
        width: auto;
    }
}

/*
    TOS NOTICE AND LINK
    ---
    Placed under the submit button
 */
#captive-tos-notice {
    margin-top: 0.5rem;
    display: block;
}

#captive-tos-notice>span {
    opacity: 0.8;
}

a.captive-tos-link {
    display: inline-block;

    cursor: pointer;
    color: #0012B0;
    /*
    text-decoration-line: underline;
    opacity: 0.9;
    font-weight: 500;
    */
}

a.captive-tos-link:hover {
    opacity: 1;
}

/*
    CONFIRMATION MAILS
    ---
    Paragraphs and stuff
 */
#captive-confirmation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem
        /* 8px */
    ;
}

#captive-confirmation p {
    font-size: 1.25rem
        /* 20px */
    ;
    line-height: 1.75rem
        /* 28px */
    ;
}

#captive-link-box {
    box-sizing: border-box;
    background: lightgray;
    border-radius: 0.2rem;
    padding: 1rem;
    margin-bottom: 0;
    width: 100%;
}

#captive-link-box>a {
    font-family: "Fira Code", monospace !important;
    color: darkslategray;
}


#captive-title {
    display: none;
}

.rankup-title {
    font-weight: bold !important;
    font-size: 2.2rem;

    @media (min-width: 768px) {
        font-size: 2rem;
    }

    line-height: initial;
    margin: 0;
}

#rankup-common-title {
    display: none;
}

#rankup-common-subtitle {
    text-align: center;

    font-family: "Helvetica Neue", sans-serif !important;
    font-weight: 300 !important;

    font-size: 1.4rem;
    margin: 0.8rem;

    @media (min-width: 768px) {
        font-size: 2.5rem;
        margin: 2rem;
    }

    color: white;
}

#captive-background * {
    font-family: "Helvetica Neue", sans-serif !important;
}

#captive-splash-title {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold !important;
    font-size: 2.5rem;
    line-height: 2.8rem;
    margin-bottom: 4rem;

    @media (min-width: 640px) {
        font-size: 3.5rem;
        line-height: 4rem;
        margin-bottom: 2.2rem;
    }

    @media (min-width: 1280px) {
        margin-bottom: 2.2rem;
    }
}

#captive-mask-splash {
    width: 90% !important;
    padding: 2.5rem 2rem 1.5rem 2rem;

    @media (min-width: 640px) {
        padding: 2.5rem 2.5rem;
        width: 65% !important;
    }

    @media (min-width: 1280px) {
        width: 35% !important;
    }

    background-color: #d20a11;
    color: white;
}

#captive-mask-splash .captive-button-submit {
    border-color: white;
}

#captive-mask-splash .captive-button-submit:hover {
    background-color: white;
    color: #d20a11;
}

#captive-maintenance-title,
#captive-maintenance-explanation {
    color: white;
    text-align: center;
    margin: 0 1rem;
}