@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

/*IMPORTANT -- LOGIN PAGE DOESN'T INHERIT CSS FROM GLOBAL FILE*/
* {
    margin: 0;
    padding: 0;
    cursor: default;
}

input {
    cursor: pointer;
}

/* Color schemes */
:root {
    --hs-brightred-glow: #aa0000;
    --hs-brownred: #160000;
    --hs-linkhover: #ff7d7d;
    --hs-dark-transparent: rgba(0, 0, 0, 0.430);
    --hs-mediumgrey: #444;
    --hs-darkergrey: #1e1e1e;
    --hs-darkgrey: #0d0d0d;
    --hs-red: #380000;
    --hs-darkred: #050000;
    --hs-brightred: #aa0000;
    --hs-white: #e9e9e9;
    --hs-taggrey: #252525;
    --hs-form-backgroundcolor: rgba(56, 0, 0, 0.5);
    --modern-purple: #11101d;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background-color: hsl(210, 50%, 14%);
    background: radial-gradient(
            circle,
            hsl(210, 50%, 14%) 60%,
            rgba(0, 0, 0, 0.95) 100%
    );
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.wrapper {
    width: 20%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding-top: 5vh;
    min-width: 400px;
    filter: drop-shadow(10px 10px 200px #cc2828) drop-shadow(-10px -10px 50px #aa2020);
}

form {
    width: 100%;
    margin: 1rem 0 1rem 0;
    padding: 10%;
    border-radius: 8px;
    background-color: hsla(0, 0%, 0%, 0.3);
    z-index: 2;
}

h1 {
    color: var(--hs-white);
    font-weight: 200;
    font-size: 2.5rem;
    width: 100%;
    text-align: center;
    margin-top: -5%;
    margin-bottom: 5%;
}

label {
    font-weight: 200;
}

form input[type=text],
form input[type=password] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 16px;
    background-color: hsl(209, 50%, 21%);
    border: 1px solid rgba(170, 0, 0, 0.36);
    color: var(--hs-white);
    box-shadow: 7px -1px 29px 0px rgba(0,0,0,0.75);
}

::placeholder {
    color: rgb(161, 161, 161);
    opacity: 1; /* Firefox */
}

form input[type=submit] {
    background-color: var(--hs-red);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    font-size: 1rem;
    transition: background-color 300ms ease;
    width: 100%;
}

form input[type=submit]:hover {
    background-color: var(--hs-brightred);
}

#logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

#remember-me-container {
    display: flex;
    align-items: center;
    color: var(--hs-white);
    margin-bottom: 1rem;
}

/*REMEMBER ME SWITCH*/
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 20px;
    margin-right: 0.5rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hs-darkred);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: var(--hs-white);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--hs-brightred);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.strength-indicator {
    display: block;
    padding: 5px;
    color: #fff;
    border-radius: 4px;
    width: 50%;
    text-align: center;
    margin: 0 auto;
}

#strengthIndicator {
    cursor: default;
    display: none;
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    /*background: #480505;*/
    overflow: hidden;
}

/* Very weak */
.strength-0 {
    background-color: #aa0000;
}

/* Weak */
.strength-1 {
    background-color: #e3e81d;
}

/* Average */
.strength-2 {
    background-color: #919138;
}

/* Strong */
.strength-3 {
    background-color: #518a51;
}

/* Very strong */
.strength-4 {
    background-color: #0d780d;
}

/* Legendary */
.strength-5 {
    background-color: #6b3e91;
}

@media (max-width: 1000px) {
    .wrapper {
        width: 90%;
        padding-top: 2rem;
    }

    #logo {
        height: 15rem;
    }

    h1 {
        font-size: 5rem;
    }

    label {
        font-size: 3rem;
    }

    form input[type=text],
    form input[type=password] {
        font-size: 3rem;
        border-radius: 1rem;
        padding: 20px;
    }

    form input[type=submit] {
        font-size: 3rem;
    }

    .switch {
        width: 90px;
        height: 45px;
        flex-shrink: 0;
    }

    .slider:before {
        width: 40px;
        height: 40px;
        left: 4px;
        bottom: 2.5px;
    }

    input:checked + .slider:before {
        transform: translateX(45px);
    }

    /* Optional: Increase label text size slightly */
    #remember-me-container label {
        font-size: 3rem;
    }

    .shadow {
        display: none;
    }
}
