/* Splash pages (login, apply, sign up) skip the per-player headers that set
   --button_size, so give them the site default. Without it text inputs lose
   their min-height and render thinner than the selects beside them. */
:root {
    --button_size: 40px;
}

body {
    height: 100vh;
    background-image: url("/static/images/misc/login-tile.7bf60dbf6b36.png");
    background-color: black;
    letter-spacing: 0.1em;
    font-size: 16px;
    font-family: Monaco, monospace;
    color: white;
}

input {
  font-size: 16px;
}

/* Splash pages have no player palette, so the themed textarea look in style.css
   (var(--bgcolor) / var(--color)) comes out see-through. Match the white
   text inputs instead. Fixed colors: the splash look is the same for everyone. */
textarea,
textarea.form-control {
    background-color: white;
    color: black;
    border: 1px solid #767676;
    border-radius: var(--input-border-radius);
    font-size: 16px;
    resize: vertical;
}

textarea::placeholder {
    color: #757575;
}

a {
    color: #92ced3;
}

a:hover {
    color: #a633c0;
}

.splash_btns {
    justify-content: space-evenly;
}

.splash-btn {
    background-position: center;
    filter: grayscale(100%);
    display: flex;
    width: 70px;
    height: 70px;
    background-color: black;
    border: 1px solid #ddd;
    border-radius: 99px;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.1;
    transition: 500ms;
    color: white;
    text-shadow: -1px 1px 0 #000,
				  1px 1px 0 #000,
				 1px -1px 0 #000,
				-1px -1px 0 #000;
}

.splash_btns {
    padding-bottom: 1em;
}

.splash-btn:hover:not(.apply) {
    filter: grayscale(0%);
    border: 1px solid #92ced3;
}

/* Apply / Sign Up buttons only light up when they are live links (the
   wrapping anchor has an href). The closed-application version has no href
   and stays greyed out. */
a[href] > .splash-btn.apply:hover {
    filter: grayscale(0%);
    border: 1px solid #92ced3;
}

/* Closed-application button: clearly non-interactive. */
.splash-btn.apply.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.splash-btn.referral {
    background-image: url('https://images.neopets.com/caption/sm_caption_410.gif');
}

.splash-btn.apply {
    background-image: url('https://images.neopets.com/images/msn_buddy/msn_grundo_hiding.gif');
}

.splash-btn.rules {
    background-image: url('https://images.neopets.com/new_games/n536.gif');
}

#splash_container {
    min-height: 100%;
    width: max-content;
    background: url("/static/images/misc/login-transpara.96723ac06c11.png");
    margin: 0 auto;
    padding: 5% 5% 25% 5%;
}

#splash_box {
    width: 100%;
    max-width: 352px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

#box_left img {
    max-width: 352px;
}

.login-box.flex-column {
    gap: 1em;
}

.login-input.flex-column {
    gap: 0.25em;
}

#splashrules {
    width: 90%;
    max-width: 650px;
    margin: 0 auto;
    padding: 5%;
    background-color: black;
}

@media (min-width: 769px) {
    body {
        font-size: 16px;
    }
    input {
        font-size: 16px;
    }
    #splash_container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100%;
        width: 724px;
        background: url("/static/images/misc/login-transpara.96723ac06c11.png");
        margin: 0 5%;
        padding: 20px;
    }

    #splash_box {
        max-width: 100%;
        flex-direction: row;
        gap: 20px;
        position: relative;
        left: 0%;
    }

    #splashrules {
        width: 85%;
        margin: 0 0 0 5%;
    }
}
/* Splash pages never load style_darkmode.css (no player yet), so follow the
   device setting instead: dark fields on the dark splash instead of glaring
   white boxes. */
@media (prefers-color-scheme: dark) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="image"]):not([type="submit"]):not([type="button"]),
    textarea,
    textarea.form-control,
    .select-wrapper,
    .select-wrapper > select {
        background-color: #1c1b24;
        color: #ececf1;
        border-color: #5b5870;
        color-scheme: dark;
    }

    .select-wrapper > select {
        border: 0;
    }

    input[type="checkbox"],
    input[type="radio"] {
        color-scheme: dark;
    }

    input::placeholder,
    textarea::placeholder {
        color: #8d8aa0;
    }

    input[type="submit"].form-control,
    input[type="button"].form-control,
    button.form-control {
        background-color: #2b2936;
        color: #ececf1;
        border: 1px solid #5b5870;
    }

    input[type="submit"].form-control:hover,
    input[type="button"].form-control:hover,
    button.form-control:hover {
        background-color: #383547;
    }

    .select-wrapper::after {
        background-color: #ececf1;
        background-image: none;
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512.02 319.26'%3E%3Cpath d='M5.9 48.96L48.97 5.89c7.86-7.86 20.73-7.84 28.56 0l178.48 178.48L434.5 5.89c7.86-7.86 20.74-7.82 28.56 0l43.07 43.07c7.83 7.84 7.83 20.72 0 28.56l-192.41 192.4-.36.37-43.07 43.07c-7.83 7.82-20.7 7.86-28.56 0l-43.07-43.07-.36-.37L5.9 77.52c-7.87-7.86-7.87-20.7 0-28.56z'/%3E%3C/svg%3E");
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: contain;
    }
}
