/* Estilos modernos para a tela de login */

:root {
    --primary-color: #00539b;
    --secondary-color: #e30613;
    --light-gray: #f8f9fa;
    --dark-gray: #495057;
    --bg-gradient: linear-gradient(135deg, #ecf4ff 0%, #ffffff 100%);
}

body {
    font-family: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
}

.login-header {
    background-color: white;
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.login-header img {
    max-width: 180px;
    margin-bottom: 15px;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.login-form {
    padding: 25px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.input-group-prepend .input-group-text {
    background-color: var(--light-gray);
    border-right: none;
    color: var(--dark-gray);
}

.form-control {
    border-left: none;
    height: calc(2.5rem + 2px);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

.invalid-feedback {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 5px;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-login:hover {
    background-color: #004081;
    box-shadow: 0 4px 10px rgba(0, 83, 155, 0.3);
    transform: translateY(-1px);
    color: white;
}

.login-footer {
    background-color: var(--light-gray);
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.login-footer p {
    margin: 0 0 5px;
}

.login-footer .contact {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.text-primary {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.text-primary:hover {
    color: #004081 !important;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
    }

    .login-form {
        padding: 20px;
    }

    .login-header {
        padding: 25px 15px 15px;
    }

    .login-header img {
        max-width: 150px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.5s ease-out;
}
