body,
html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('wallpaper1.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 400px;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.login-box img {
    width: 50px;
    height: auto;
    display: block;
    /* Needed for margin auto to work */
    margin-left: auto;
    margin-right: auto;
}

.login-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-box h1,
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-box input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    padding: 0.8rem;
    margin-bottom: 1rem;
    color: white;
    font-size: 1rem;
}

.login-box input::placeholder {
    color: #d1d1d1;
    /* brighter placeholder */
}

.login-box input:focus {
    outline: none;
    border-bottom: 1px solid #00f0ff;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* aligns checkbox and text vertically */
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    line-height: 1;
}

.options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
}



.login-box button {
    padding: 0.7rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

.login-box button:hover {
    background-color: #e0e0e0;
}

.login-box p {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.login-box a {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

.login-container a {
    color: #00e6ff;
}

/* Tablets and below */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 1.5rem;
    }

    .login-box h2 {
        font-size: 1.5rem;
    }

    .login-box input {
        font-size: 0.95rem;
    }

    .login-box button {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .options {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .options label {
        font-size: 0.8rem;
    }
}

/* Phones and small screens */
@media (max-width: 480px) {

    body,
    html {
        padding: 1rem;
    }

    .login-container {
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
    }

    .login-box h2 {
        font-size: 1.4rem;
    }

    .login-box input {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .login-box button {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .login-box h2 {
        font-size: 1.2rem;
    }

    .login-box input {
        font-size: 0.85rem;
    }

    .options {
        font-size: 0.75rem;
    }

    .login-box button {
        font-size: 0.85rem;
    }

    .login-box p {
        font-size: 0.75rem;
    }
}