   /* ---------------- Reset default styles ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ---------------- Body ---------------- */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../../images/sunglasses-glasses.webp') no-repeat center center;
    background-size: cover;
    padding: 10px; /* small padding for very small screens */
}

/* ---------------- Heading ---------------- */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* ---------------- Form ---------------- */
form {
    background: url('../../images/glassesbg.jpeg') repeat center center;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px; /* desktop/tablet width */
}

/* ---------------- Labels ---------------- */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

/* ---------------- Inputs ---------------- */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Input focus */
input[type="text"]:focus,
input[type="password"]:focus {
    background-color: #0f0f0fff;
    border-color: #007BFF;
    outline: none;
    color:white;
}

/* ---------------- Button ---------------- */
button {
    width: 100%;
    padding: 12px;
    background: #007BFF;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

button:active {
    background: #004494;
    transform: translateY(0);
}

/* ---------------- Responsive ---------------- */

/* Tablets / medium mobile */
@media (max-width: 600px) {
    form {
        width: 100%;
        padding: 30px 20px; /* reduce padding */
        border-radius: 8px;
    }

    h2 {
        font-size: 22px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 12px;
        font-size: 16px;
    }

    button {
        padding: 12px;
        font-size: 16px;
    }
}

/* Small mobile / Android */
@media (max-width: 400px) {
    form {
        width: 100%;
        max-width: none; /* remove max-width to allow full width */
        padding: 25px 15px; /* minimal padding for full-width */
        border-radius: 6px;
    }

    h2 {
        font-size: 20px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 10px;
        font-size: 15px;
    }

    button {
        padding: 10px;
        font-size: 15px;
    }
}