        /* --- Reset e Estilos Globais --- */
        :root {
            --orange-primary: #f97316;
            --orange-light: #fff7ed;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --border-color: #d1d5db;
            --background-white: #ffffff;
            --background-body: #fef8f2;
        }

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

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background-body);
            color: var(--text-dark);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        /* Círculos decorativos no fundo */
        body::before,
        body::after {
            content: '';
            position: absolute;
            background-color: rgba(249, 115, 22, 0.1);
            border-radius: 50%;
            z-index: -1;
        }

        body::before {
            width: 300px;
            height: 300px;
            top: 10%;
            left: -150px;
        }

        body::after {
            width: 400px;
            height: 400px;
            bottom: 5%;
            right: -200px;
        }

        /* CONTROLE DE VISIBILIDADE */
        .signup-container {
            display: none;
        }

        /* --- Contêineres Principais (Login e Cadastro) --- */
        .login-container,
        .signup-container {
            width: 100%;
            background-color: var(--background-white);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
            padding: 40px;
        }

        .login-container {
            max-width: 450px;
        }

        .signup-container {
            max-width: 450px;
            /* Era 900px, agora fica igual ao Login */
        }

        /* --- Cabeçalho Comum --- */
        .form-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .form-header h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .form-header p {
            color: var(--text-light);
        }

        /* --- Estilo dos Campos --- */
        .input-group {
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--text-light);
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper .icon {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 15px;
            color: var(--text-light);
        }

        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="date"],
        select,
        textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.2s ease;
        }

        .input-wrapper .icon+input {
            padding-left: 45px;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--orange-primary);
            box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
        }

        /* --- Botão Principal --- */
        .main-action-btn {
            width: 100%;
            padding: 15px;
            font-size: 16px;
            font-weight: 600;
            background-color: var(--orange-primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 10px;
            transition: background-color 0.3s ease;
        }

        .main-action-btn:hover {
            background-color: #ea580c;
        }

        /* --- Link Inferior (Trocar de tela) --- */
        .switch-form-link {
            text-align: center;
            margin-top: 25px;
            font-size: 14px;
            color: var(--text-light);
        }

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

        /* --- LOGIN --- */
        .extra-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            font-size: 14px;
        }

        .extra-options .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .extra-options a {
            color: var(--orange-primary);
            text-decoration: none;
        }

        /* --- CADASTRO --- */
        .signup-container .form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            text-align: left;
        }

        .signup-container .login-link {
            font-size: 14px;
            color: var(--text-light);
        }

        .signup-container .login-link a {
            color: var(--orange-primary);
            text-decoration: none;
            font-weight: 600;
        }

        .stepper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 30px 0;
            position: relative;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1;
            text-align: center;
        }

        .step-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #e5e7eb;
            color: var(--text-light);
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 600;
            margin-bottom: 8px;
            transition: all 0.3s ease;
        }

        .step-title {
            font-size: 14px;
            color: var(--text-light);
        }

        .step.active .step-number {
            background-color: var(--orange-primary);
            color: white;
        }

        .step.active .step-title {
            color: var(--text-dark);
            font-weight: 600;
        }

        .stepper::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #e5e7eb;
            width: 100%;
        }

        .form-body {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
        }

        .form-section {
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--text-dark);
            border-bottom: 1px solid #e5e7eb;
            padding-bottom: 10px;
        }

        .input-wrapper .icon-right {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 15px;
            color: var(--text-light);
        }

        textarea {
            resize: vertical;
            min-height: 80px;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .gender-group {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .gender-group .radio-option {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #photo-upload-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        #photo-preview {
            width: 120px;
            height: 120px;
            border: 3px solid #e5e7eb;
            border-radius: 50%;
            background-color: #f9fafb;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            background-size: cover;
            background-position: center;
            transition: all 0.3s ease;
        }

        #photo-preview:hover {
            border-color: var(--orange-primary);
        }

        #photo-preview i {
            font-size: 40px;
            color: var(--orange-primary);
        }

        #photo-upload-section label {
            margin-top: 10px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
        }

        input[type="file"] {
            display: none;
        }

        @media (max-width: 850px) {
            .form-body {
                grid-template-columns: 1fr;
            }

            #photo-upload-section {
                order: -1;
                margin-bottom: 30px;
            }
        }

        @media (max-width: 600px) {
            body {
                padding: 20px 10px;
            }

            .login-container,
            .signup-container {
                padding: 25px;
            }

            .grid-2 {
                grid-template-columns: 1fr;
            }

            .signup-container .form-header {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
        }

        /* --- CSS PARA MENSAGEM DE ERRO (NOVO) --- */
        .error-message-box {
            display: none;
            /* Oculto por padrão */
            background-color: #fef2f2;
            border: 1px solid #fca5a5;
            color: #b91c1c;
            padding: 12px;
            border-radius: 8px;
            font-size: 13px;
            margin-bottom: 20px;
            align-items: center;
            gap: 10px;
            animation: fadeIn 0.3s ease;
        }

        .error-message-box i {
            font-size: 16px;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Feedback de Validação em Tempo Real */
        .input-feedback {
            font-size: 12px;
            margin-top: 4px;
            margin-left: 2px;
            min-height: 18px;
            /* Reserva espaço para não pular a tela */
            display: block;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .feedback-error {
            color: #ef4444;
            /* Vermelho */
        }

        .feedback-success {
            color: #16a34a;
            /* Verde */
        }

        .input-error-border {
            border-color: #ef4444 !important;
            background-color: #fef2f2 !important;
        }

        /* --- CORREÇÃO: Remove fundo azul/amarelo e textos estranhos do Autofill --- */
        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px white inset !important;
            /* Força fundo branco */
            -webkit-text-fill-color: var(--text-dark) !important;
            /* Força cor do texto */
            transition: background-color 5000s ease-in-out 0s;
            /* Evita mudança de cor brusca */
        }

        /* Remove qualquer pseudo-elemento que extensões possam estar injetando */
        .input-wrapper input::-ms-clear,
        .input-wrapper input::-ms-reveal {
            display: none;
        }

        /* css/pages/auth.css */

/* --- Importamos as variáveis globais se necessário, ou assumimos que já carregaram --- */

/* Ajuste Geral do Body para Centralizar */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-body);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Decorativos de Fundo */
body::before, body::after {
    content: '';
    position: absolute;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    z-index: -1;
}
body::before { width: 300px; height: 300px; top: 10%; left: -150px; }
body::after { width: 400px; height: 400px; bottom: 5%; right: -200px; }

/* --- CONTÊINERES (Login, Cadastro, Esqueci Senha) --- */
.auth-container {
    width: 100%;
    max-width: 450px;
    background-color: var(--background-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    display: none; /* Ocultos por padrão, JS ativa o correto */
    animation: fadeIn 0.4s ease;
}

/* Classe utilitária para mostrar o container ativo */
.auth-container.active {
    display: block;
}

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

/* --- Cabeçalhos --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}
.form-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.form-header p { color: var(--text-light); font-size: 14px; }

/* --- Inputs e Labels --- */
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-light);
}
.input-wrapper { position: relative; }
.input-wrapper .icon {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    left: 15px;
    color: #9ca3af;
}
input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Espaço para o ícone */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.2s;
}
input:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* --- CHECKBOX LARANJA (SOLICITADO) --- */
input[type="checkbox"] {
    accent-color: var(--orange-primary); /* Propriedade moderna para colorir inputs nativos */
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
}

/* --- Links e Botões --- */
.extra-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}
.extra-options a, .switch-form-link a {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.switch-form-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-light);
}

.main-action-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--orange-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.main-action-btn:hover { background-color: #ea580c; }
.main-action-btn:disabled { background-color: #fdba74; cursor: not-allowed; }

/* --- Mensagens de Erro/Sucesso --- */
.error-message-box, .success-message-box {
    display: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}
.error-message-box { background-color: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.success-message-box { background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Correção de Autofill (Fundo Amarelo/Azul) */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}