/* --- Reset Básico e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f0f4f8;
}

/* --- Layout Principal com CSS Grid --- */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Duas colunas com proporções diferentes */
    min-height: 100vh;
}

/* --- Coluna de Informações (Esquerda) --- */
.info-column {
    background: linear-gradient(135deg, rgba(0, 166, 237, 0.9), rgba(0, 61, 100, 0.95)), url('../imagens/cadastro.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.info-column h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-column p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
}

/* --- Coluna do Formulário (Direita) --- */
.form-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

#regForm {
    width: 100%;
    max-width: 550px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- Indicador de Progresso --- */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}
.progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background-color: white;
    padding: 0 10px;
}
.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    transition: all 0.4s ease;
    border: 2px solid #e0e0e0;
}
.step-label {
    margin-top: 8px;
    font-size: 14px;
    color: #999;
    transition: all 0.4s ease;
}
.step.active .step-number {
    background-color: #00A6ED;
    color: white;
    border-color: #00A6ED;
}
.step.active .step-label {
    color: #003D64;
    font-weight: 500;
}

/* --- Estilos dos Inputs e Abas --- */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    text-align: center;
    color: #003D64;
    margin-bottom: 30px;
    font-size: 24px;
}

.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="date"],
.input-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group input:focus {
    border-color: #00A6ED;
    box-shadow: 0 0 0 3px rgba(0, 166, 237, 0.2);
}
.input-group input.invalid {
    border-color: #e74c3c;
}
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    min-height: 15px; /* Evita que o layout "pule" */
}
.checkbox-group {
    display: flex;
    align-items: center;
}
.checkbox-group input {
    margin-right: 10px;
}

/* --- Botões de Navegação --- */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.navigation-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
#prevBtn {
    background-color: #f0f0f0;
    color: #555;
}
#prevBtn:hover {
    background-color: #e0e0e0;
}
#nextBtn {
    background-color: #FFA500;
    color: white;
}
#nextBtn:hover {
    background-color: #e69500;
    transform: translateY(-2px);
}

.user-type-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}
.user-type-group input[type="radio"] {
    display: none;
}
.user-type-group label {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.user-type-group input[type="radio"]:checked + label {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.input-group-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
    font-weight: 500;
    color: #555;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196F3; /* Cor para 'Colaborador' */
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50; /* Cor para 'Empresa' */
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.back-to-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.back-to-login a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-login a:hover {
    text-decoration: underline;
    color: #0056b3; }


/* --- Responsividade --- */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr; 
    }
    .info-column {
        min-height: 300px;
        text-align: center;
        padding: 30px;
    }
    .form-column {
        padding: 20px;
    }
    #regForm {
        padding: 30px;
        margin: 20px 0;
    }
}