/* 
 * Arquivo: Complemento para o /projeto-servicos/assets/css/auth.css
 * Adições de estilo para o formulário de registro aprimorado
 */

/* Seções do formulário */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* Layout de linhas para formulário */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.form-row > .form-group {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    margin-bottom: 1rem;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Verificador de força de senha */
.password-strength {
    margin-top: 0.5rem;
}

.strength-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.strength-meter {
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    background-color: var(--danger);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-requirements {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
}

.requirement {
    font-size: 0.75rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.requirement i {
    color: var(--danger);
    font-size: 0.875rem;
}

/* Checkboxes de categorias */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.category-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.category-checkbox input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
}

.category-checkbox input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.category-checkbox label {
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none;
}

/* Melhorias no tipo de usuário */
.user-type-toggle {
    margin-bottom: 2rem;
}

.user-type-option small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: normal;
}

.user-type-option.active small {
    color: rgba(255, 255, 255, 0.8);
}

/* Estilo para campos inválidos */
.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--danger);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

/* Espaçamentos e margens */
.mt-2 {
    margin-top: 0.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row > .form-group,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .password-requirements {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}
/* Aumentar largura do container de autenticação */
.auth-container {
    max-width: 700px;
    width: 100%;
}

/* Melhorar espaçamento interno do card */
.auth-card {
    padding: 2.5rem 3rem;
}

/* Refinar o layout de tipo de usuário */
.user-type-toggle {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.user-type-option {
    flex: 1;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.user-type-option:hover:not(.active) {
    border-color: var(--gray-300);
    background-color: var(--gray-50);
    transform: translateY(-2px);
}

.user-type-option.active {
    border-color: var(--primary);
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.user-type-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.user-type-option.active .user-type-icon {
    color: var(--white);
}

.user-type-option span {
    font-size: 1.125rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.user-type-option.active span {
    color: var(--white);
}

/* Melhorar alertas informativos */
.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-info i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

/* Melhorar seções de formulário */
.form-section {
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: var(--gray-800);
    font-size: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Animar transições entre seções */
.form-section {
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Refinar a aparência do verificador de senha */
.password-strength {
    background-color: var(--gray-50);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.strength-meter {
    height: 6px;
    margin: 0.5rem 0;
}

.password-requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

/* Melhorar o botão de envio */
.btn-primary {
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -3px rgba(79, 70, 229, 0.3);
}

/* Melhorar responsividade */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .user-type-toggle {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.25rem;
    }
    
    .auth-container {
        padding: 0 15px;
    }
}

/* Feedback visual para inputs */
.input-group:focus-within {
    transition: all 0.3s ease;
}

.input-group:focus-within .input-icon {
    color: var(--primary);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s ease both;
}

.form-section:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.form-section:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.form-group {
    position: relative;
}