body {
    font-family: Arial, sans-serif;
    background: linear-gradient(rgba(33, 37, 41, 0.85), rgba(40, 44, 48, 0.9)), 
                url('../images/background.webp') no-repeat center center;
    background-size: cover;
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/*Heading styles*/
.header-text {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #FFFFFF;
}

.login-header-text {
    content: "Bem-Vindo";
}

.register-header-text {
    content: "Fazer Cadastro";
}

/* Container styles */
.login-container,
.register-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin-right: 2rem;
}

/* Header styles */
.login-header,
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1,
.register-header h1 {
    color: #1a73e8;
    margin: 0;
    padding: 0;
}

/* Form group styles */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Estilos para feedback de erro */
.error {
    border: 2px solid #f44336 !important;
    transition: border-color 0.3s ease;
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    padding: 5px;
    border-radius: 4px;
    background-color: #ffebee;
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.error + .error-message {
    display: block;
    opacity: 1;
}

/* Adicionando classe para remover o erro */
.error-correct {
    border: 1px solid #ddd !important;
}

.error-correct + .error-message {
    display: none;
    opacity: 0;
}

/* Button styles */
.login-button,
.register-button,
.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.login-button:hover,
.register-button:hover,
.btn-submit:hover {
    background: #1557b0;
}

/* Back link styles */
.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    color: #1a73e8;
}

/* CPF input style */
.cpf-input {
    letter-spacing: 3px;
}

/* Popup styles */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup.success {
    background-color: #4CAF50;
    color: white;
}

.popup.error {
    background-color: #f44336;
    color: white;
}

.popup.warning {
    background-color: #ff9800;
    color: white;
}

/* Animation for popup exit */
.popup.exit {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}