:root {
    --primary-color: #485fc7;
    --primary-hover: #3b4fa1;
    --background-dark: #0D0D0D;
    --background-light: #011640;
    --text-light: #ffffff;
    --text-dark: #333333;
    --grey-light: #f5f5f5;
    --grey-medium: #dbdbdb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--grey-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Seção da Marca (Esquerda) */
.brand-section {
    width: 50%;
    background: linear-gradient(135deg, var(--background-dark), var(--background-light));
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.brand-content {
    max-width: 400px;
}

.brand-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brand-content p {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Seção do Formulário (Direita) */
.form-section {
    width: 50%;
    background: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-container {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.form-container.active {
    display: block;
    opacity: 1;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-container p {
    margin-bottom: 2rem;
    color: #7a7a7a;
}

/* Estilos dos Campos do Formulário */
.field {
    margin-bottom: 1.5rem;
}

.label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--grey-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(72, 95, 199, 0.2);
}

.control.has-icons-left .input { padding-left: 2.5em; }
.control.has-icons-right .input { padding-right: 2.5em; }
.control .icon {
    height: 2.5em;
    width: 2.5em;
    position: absolute;
    top: 8px;
    z-index: 4;
    color: #dbdbdb;
}
.control .icon.is-left { left: 8px; }
.control .icon.is-right { right: 8px; }
.control { position: relative; }


/* Botões */
.button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.primary-button:hover {
    background-color: var(--primary-hover);
}

.button:disabled {
    background-color: var(--grey-medium);
    cursor: not-allowed;
}

.google-button {
    background: #fff;
    color: #444;
    border: 1px solid var(--grey-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.google-button img {
    width: 20px;
    height: 20px;
}

.google-button:hover {
    background-color: var(--grey-light);
}

/* Outros Elementos */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #ccc;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}
.separator:not(:empty)::before { margin-right: .25em; }
.separator:not(:empty)::after { margin-left: .25em; }

.switch-form-text {
    text-align: center;
    margin-top: 1.5rem;
}

.switch-form-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.switch-form-text a:hover {
    text-decoration: underline;
}

.help.error-message {
    color: #f14668;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================================= */
/* ESTILOS PARA MENSAGENS DE FEEDBACK/ALERTA */
/* ========================================= */

.message-container {
    position: fixed; /* Fixa na tela para que role com a página */
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Estado inicial (oculto) */
    opacity: 0;
    transform: translateY(-30px);
    visibility: hidden;
    
    /* Transição suave */
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* Estado visível */
.message-container.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Estilo para mensagens de Sucesso */
.message-container.success {
    background-color: #28a745; /* Verde sucesso */
    border-left: 5px solid #218838;
}

/* Estilo para mensagens de Erro */
.message-container.error {
    background-color: #dc3545; /* Vermelho erro */
    border-left: 5px solid #c82333;
}

/* Responsividade (Mobile-First) */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .brand-section,
    .form-section {
        width: 100%;
    }

    .brand-section {
        padding: 30px;
        min-height: 250px;
    }

    .form-section {
        padding: 30px 20px;
    }
}