/* 1. Basic Reset and Background */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: rgb(94, 106, 46);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px;
    color: #333;
}

/* 2. Login Container Card */
.login-container {
    background-color: #f8eee4; /* Matching the hover color for a cohesive look */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* 3. Image/Logo in the Middle */
.login-container::before {
    content: "";
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    background-image: url('GEV_logo.svg'); /* REPLACE WITH YOUR IMAGE PATH */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

h2 {
    margin-bottom: 25px;
    color: #4a5423; /* Darker version of your background */
    font-size: 1.5rem;
}

/* 4. Input Styling */
.input-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative; /* Necessary for the password toggle position */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #703d1a;
}

/* 5. Aesthetic Password Toggle */
.password-wrapper {
    position: relative;
}

/* 6. Button Styling with Hover Effects */
button {
    width: 100%;
    padding: 14px;
    background-color: #703d1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition for color and movement */
}

button:hover {
    background-color: #f8eee4;
    color: #703d1a;
    border: 2px solid #703d1a;
    transform: translateY(-5px); /* Button moves up slightly */
    box-shadow: 0 5px 15px rgba(112, 61, 26, 0.3);
}

.error-text {
    color: #d9534f;
    margin-top: 15px;
    font-size: 0.85rem;
}

/* --- MOBILE RESPONSIVENESS FOR LOGIN --- */
@media screen and (max-width: 480px) {
    body {
        align-items: center;
        padding-top: 10px;
    }

    .login-container {
        width: 90%; /* Leave a small margin on the sides */
        padding: 25px 20px;
        max-width: 360px;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    /* Make inputs and buttons taller for easier thumb-tapping */
    input {
        padding: 15px;
        font-size: 16px; /* Prevents iOS from auto-zooming on focus */
    }

    button {
        padding: 16px;
        transform: none !important; /* Disable translateY on mobile for stability */
    }

    button:hover {
        transform: none; /* Keep button still on mobile touch */
    }
}

/* --- TABLET STYLES (481px to 1024px) --- */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    body {
        align-items: center;
    }

    .login-container {
        max-width: 450px; /* Slightly wider than mobile */
        /* padding: 10px; */
        margin: 0 auto; /* Helps with centering */
        padding: 40px;
    }

    input {
        padding: 14px; /* Comfortable touch target */
        font-size: 1rem;
    }

    button {
        padding: 16px;
    }

    button:hover {
        transform: translateY(-3px); /* Subtler hover for touch-enabled screens */
    }
}