@media (max-width: 600px) {
    .container {
        width: 90%;
        margin: 20px auto;
        padding: 1rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-image: url('signin.jpg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Sign In container */
.container {
    position: relative;
    background-image: url('signin-bg.jpg.png');
    background-size: cover;
    background-position: center;
    width: 450px;
    max-width: 94%;
    padding: 1.5rem;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 20px 35px rgba(0, 0, 1, 0.9);
    overflow: hidden;
}

/* Light overlay for readability */
.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8); /* transparent white overlay */
    border-radius: 10px;
    z-index: 0;
}

/* Keep content above overlay */
form,
.form-title,
.input-group,
.recover,
.btn,
.links {
    position: relative;
    z-index: 1;
}

form {
    margin: 0 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1.3rem;
    margin-bottom: 0.4rem;
}

input {
    color: inherit;
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #757575;
    padding-left: 1.5rem;
    font-size: 15px;
}

.input-group {
    padding: 1% 0;
    position: relative;
}

.input-group i {
    position: absolute;
    color: black;
}

input:focus {
    background-color: transparent;
    outline: transparent;
    border-bottom: 2px solid hsl(327, 90%, 28%);
}

input::placeholder {
    color: transparent;
}

label {
    color: #757575;
    position: relative;
    left: 1.2em;
    top: -1.3em;
    cursor: auto;
    transition: 0.3s ease all;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label {
    top: -3em;
    color: hsl(327, 90%, 28%);
    font-size: 15px;
}

.recover {
    text-align: right;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.recover a {
    text-decoration: none;
    color: rgb(125, 125, 235);
}

.recover a:hover {
    color: blue;
    text-decoration: underline;
}

.btn {
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 5px;
    outline: none;
    border: none;
    width: 100%;
    background: skyblue;
    color: white;
    cursor: pointer;
    transition: 0.9s;
    margin-bottom: 20px;
}

.btn:hover {
    background: #07001f;
}

.links {
    display: flex;
    justify-content: space-around;
    padding: 0 4rem;
    margin-top: 0.9rem;
    font-weight: bold;
    gap: 10px;
}

button {
    color: rgb(125, 125, 235);
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: bold;
}

button:hover {
    text-decoration: underline;
    color: blue;
}

@media (max-width: 480px) {
    .container {
        margin: 30px auto;
        padding: 1rem;
    }

    form {
        margin: 0 0.5rem;
    }

    .form-title {
        font-size: 1.3rem;
        padding: 1rem;
    }

    .input-group {
        padding: 6% 0;
    }

    label {
        left: 1em;
        font-size: 0.9rem;
    }

    .links {
        flex-direction: column;
        padding: 0;
        text-align: center;
    }
}
