* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    background: url(pexels-taryn-elliott-5405596.jpg);
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
    z-index: -1;
}

main {
    max-width: 420px;
    width: 90%;
    padding: 10px;
    height: auto;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 70px;
    backdrop-filter: blur(1px);
    box-shadow: 20px 20px 5px 5px rgba(255, 255, 255, 0.5);
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    margin: 60px;
    padding: 10px;
}

label {
    font-size: 20px;
    font-weight: normal;
}

.show {
    font-size: 15px;
    font-weight: normal;
}

input {
    margin: 10px;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
}
input:focus {
    outline: none;
    border: 2px solid #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

#email {
    width: 300px;
    transition: transform 0.5s ease-in;
}

#password {
    width: 300px;
    transition: transform 0.5s ease-in;
}

#email:hover,
#password:hover, .google:hover {
    transform: scale(1.05);
    border: 1px solid rgba(121, 246, 208, 0.84);
}

#showPassword {
    width: auto;
}


.forgot-password {
    margin-left: 80px;
    font-size: 15px;
    text-decoration: none;
    color: black;
}

.fors {
    margin: 10px;
    padding: 10px;
}

.login {
    width: 300px;
    height: 40px;
    margin: 10px;
    border-radius: 20px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid black;
    transition: all 0.5s ease-in;
}
.login:hover{
    transform: translateY(-5px);
}
.sign-up {
    text-decoration: none;
    color: black;
    margin-left: 10px;
    padding: 10px;
}

.google {
    width: 300px;
    margin: 50px;
    padding: 10px;
    cursor: pointer;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    transition: transform 0.5s ease-in;
}

.divider {
    display: flex;
    align-items: center;
    width: 300px;
    margin: 20px 0;
    font-size: 14px;
    color: #333;
}

.divider::before,
.divider::after {
    content: "";
    flex: 2;
    height: 2px;
    background-color: #040404;
}

.divider span {
    padding: 0 12px;
    white-space: nowrap;
}
/* ===== RESPONSIVE FOR MOBILE ===== */

@media (max-width: 480px) {
    main {
        border-radius: 30px;
        padding: 10px 5px;
        width: 95%;
        box-shadow: 10px 10px 5px 2px rgba(255, 255, 255, 0.5);
    }

    header {
        margin: 30px 20px;
        padding: 5px;
        text-align: center;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 0.9rem;
    }

    label {
        font-size: 16px;
    }

    #email,
    #password {
        width: 240px;
    }

    .forgot-password {
        margin-left: 20px;
        font-size: 13px;
    }

    .login {
        width: 240px;
        font-size: 16px;
    }

    .google {
        width: 240px;
        margin: 20px;
        font-size: 14px;
    }

    .divider {
        width: 240px;
    }

    .sign-up {
        padding: 5px;
    }

    .fors p {
        font-size: 14px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    #email,
    #password {
        width: 200px;
    }

    .login,
    .google {
        width: 200px;
    }

    .divider {
        width: 200px;
    }

    .forgot-password {
        margin-left: 5px;
    }
}