body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* allow content to grow without forcing overflow */
}

.login-container {
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(60, 77, 159, 0.95), rgba(51, 145, 212, 0.95)); Gradient: black, dark blue, light blue */
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
}

.profile-img {
    border-radius: 50%;
    margin-bottom: 20px;
}

input {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Ensures padding and border are included in width calculations */
input, button {
    box-sizing: border-box;
}

/* Align form elements vertically and keep consistent spacing */
.login-container form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #3391d4; /* Primary blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3c4d9f; /* Darker blue on hover */
}

.links a {
    display: block;
    margin-top: 10px;
    color: #555;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.error {
    color: red;
    margin-top: 10px;
}

/* Login page specific styles */
h2 {
    color: #fcb72c; /* Orange for "Bem-vindo" */
    margin-bottom: 20px;
}

@media (max-width: 400px) {
    .login-container {
        padding: 20px;
        width: 100%;
        border-radius: 6px;
        min-width: 280px;
        max-width: 90vw;
    }
}

/* Additional responsiveness for medium screens */
@media (max-width: 768px) {
    .login-container {
        padding: 24px;
        min-width: 300px;
        max-width: 95vw;
    }
}

/* Mobile devices: no background image */
@media (max-width: 767px) {
    body {
        background: none;
        background-color: #f4f4f4;
    }
}

/* Login page styles */
body {
    background: url('/static/fundo_svg.svg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrollbars */
}

.image-section {
    display: none;
}

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

.login-container {
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
}

/* Desktop and tablet landscape: side-by-side layout */
@media (min-width: 1024px) {
    body {
        display: flex;
        flex-direction: row;
        background: url('/static/fundo_svg.svg') no-repeat center center;
        background-size: cover;
        align-items: stretch; /* Ensure full height */
    }

    .login-container {
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        border-radius: 12px;
        padding: 32px 24px;
        max-width: 500px;
        box-sizing: border-box;
    }
}

/* Mobile devices: no background image and full screen for small screens */
@media (max-width: 767px) {
    body {
        background: none;
        background-color: #3391d4;
    }
    .login-container {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        margin: auto;
        min-width: unset;
        min-height: unset;
        box-shadow: none;
        border-radius: 0;
        padding: 20px;
        max-width: 90vw;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile landscape: adjust for better fit */
@media (max-width: 767px) and (orientation: landscape) {
    .login-container {
        max-width: 70vw;
        padding: 15px;
    }
}

/* Final adjustment to gradient direction */
.login-container {
    background: linear-gradient(to top, rgb(13, 45, 202), rgba(51, 145, 212, 1)); /* Gradient: black, dark blue, light blue */
    width: 500px;
} 