:root {
    --primary: #e74c3c;
    --secondary: #3498db;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #2ecc71;
    --danger: #e74c3c;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    background: linear-gradient(to right, var(--primary), #c0392b);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.alert {
    background-color: rgba(231, 76, 60, 0.95); /* vermelho vibrante */
    color: #fff; /* texto branco */
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 320px;
    font-size: 1rem;
    font-weight: 500;
    animation: fadeInDown 0.5s;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    outline: none;
}

.forgot-link {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-link a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-link a:hover {
    text-decoration: underline;
}

.g-recaptcha {
    margin: 1.5rem 0 0.5rem 0;
    display: flex;
    justify-content: center;
}

.btn-login {
    width: 100%;
    height: 45px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }
    .login-header {
        padding: 1.5rem;
    }
    .login-body {
        padding: 1.2rem;
    }
    .alert {
        padding: 10px;
        font-size: 0.95rem;
    }
}