* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f1f2f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* O Cartão Principal */
.auth-container {
    background: white;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
}

/* LADO ESQUERDO: Branding com fundo escuro/vermelho */
.auth-banner {
    flex: 1;
    background: linear-gradient(135deg, #d63031, #e74c3c);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.banner-icon {
    font-size: 4rem;
    color: #ffeaa7;
    margin-bottom: 20px;
}

.banner-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* LADO DIREITO: Área do Formulário */
.auth-form-box {
    flex: 1;
    padding: 50px;
    background: white;
    position: relative;
    display: flex;
    align-items: center;
}

/* Controle de Exibição (Login vs Cadastro) */
.form-section {
    width: 100%;
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Textos do Formulário */
.form-section h3 {
    font-size: 1.8rem;
    color: #2d3436;
    margin-bottom: 5px;
}

.subtitle {
    color: #636e72;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Inputs de Luxo */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4b0be;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    font-size: 1rem;
    color: #2d3436;
    outline: none;
    transition: all 0.3s;
    background: #fafafa;
}

.input-group input:focus {
    border-color: #e74c3c;
    background: white;
}

/* Botões e Links */
.forgot-password {
    display: block;
    text-align: right;
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.btn-primary {
    width: 100%;
    background: #2d3436;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Rodapé do Formulário */
.toggle-text {
    text-align: center;
    margin-top: 25px;
    color: #636e72;
    font-size: 0.95rem;
}

.toggle-text span {
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Responsivo para Celular */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-banner {
        padding: 30px 20px;
        min-height: 200px;
    }
    .auth-form-box {
        padding: 30px 20px;
    }
}