/* styles.css */
body {
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    text-align: center;
    height: 100vh;
    /* Ensure content is vertically centered */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.logo {
    width: 55%;
    height: auto;
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.subtitle {
    font-size: 20px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
}

.login-button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}

.error-message {
    color: #d9534f;
    background-color: #f8d7da;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}


.label {
    font-size: 16px;
    text-align: left;
}


/* @media (max-width: 360px) { */
@media screen and (max-height: 500px) {

    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        text-align: center;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: auto;
    }

    .login-container {
        /* align container to top on small screens */
        align-items: flex-start;
        height: 100%;
    }


    .login-box {
        padding: 20px;
    }

    .logo {
        width: 30%;
        height: auto;
        margin-bottom: 5px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 16px;
    }

    .input-group label {
        font-size: 14px;
    }

    .login-button {
        font-size: 14px;
    }
}