/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Jost', sans-serif;
    background: rgb(2, 35, 79); 
    overflow: hidden;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: rgb(2, 35, 79);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* SPINNER */
.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #ffffff;
    border-top: 8px solid #3586ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* SPIN ANIMATION */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* HIDE LOADER */
body.loaded #loader {
    display: none;
}

/* MAIN CARD */
.main {
    width: 400px;
    height: 550px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* HIDE CHECKBOX */
#chk {
    display: none;
}

/* SIGNUP */
.signup {
    position: relative;
    width: 100%;
    height: 100%;
}

/* LABELS */
label {
    color: white;
    font-size: 2.2rem;
    display: flex;
    justify-content: center;
    margin: 40px 0;
    font-weight: bold;
    cursor: pointer;
    transition: 0.5s;
}

/* INPUTS */
input {
    width: 75%;
    padding: 14px;
    margin: 15px auto;
    display: block;
    border: none;
    outline: none;
    border-radius: 10px;
    background: #f0f0f0;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(53, 134, 255, 0.5);
}

/* BUTTON */
button {
    width: 75%;
    height: 45px;
    margin: 25px auto;
    display: block;
    border: none;
    border-radius: 10px;
    background: #3586ff;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #1f5fc2;
    transform: translateY(-2px);
}

/* LOGIN AREA */
.login {
    height: 500px;
    background: white;
    border-radius: 60% / 10%;
    transform: translateY(-170px);
    transition: 0.8s ease-in-out;
}

/* LOGIN LABEL */
.login label {
    color: rgb(2, 35, 79);
    transform: scale(0.6);
}

/* TOGGLE EFFECT */
#chk:checked~.login {
    transform: translateY(-540px);
}

#chk:checked~.login label {
    transform: scale(1);
}

#chk:checked~.signup label {
    transform: scale(0.6);
}

/* RESPONSIVE */
@media (max-width: 500px) {

    .main {
        width: 90%;
        height: 550px;
    }

    input,
    button {
        width: 85%;
    }
}