/* ============================================
   MELHORIAS ESTRUTURAIS DO MODAL DE LOGIN
   Complementa os estilos existentes
   ============================================ */

/* Subtítulo do Modal */
.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

/* Cabeçalho das Seções de Auth */
.auth-section-header {
    margin-bottom: 20px;
}

.auth-section-header .title-auth-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.auth-section-header .title-auth-form i {
    font-size: 20px;
}

.auth-section-header .p-auth-modal {
    margin-bottom: 15px;
}

/* Seção de Login Social */
.social-login-section {
    margin-bottom: 25px;
}

.social-buttons-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-login-ext {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-login-ext .text {
    display: none;
}

@media (min-width: 768px) {
    .btn-login-ext .text {
        display: inline;
    }
}

.btn-login-ext:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Mensagens de Resultado */
.auth-result-message {
    margin-bottom: 15px;
    min-height: 0;
}

/* Campos de Input com Ícones */
.form-group.has-feedback {
    position: relative;
}

.input-group {
    position: relative;
    display: block;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 3;
    pointer-events: none;
}

.has-feedback .auth-form-input {
    padding-left: 40px;
}

/* Opções do Formulário (Lembrar-me e Esqueci Senha) */
.form-group-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.forgot-password-wrapper {
    text-align: right;
}

/* Botão de Login com Ícone */
.btn-login i {
    margin-right: 5px;
}

/* Cards de Opções de Registro */
.register-option-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.register-option-card:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.register-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.register-card-header i {
    font-size: 24px;
    color: #007bff;
}

.register-card-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.register-card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-register-person,
.btn-register-company {
    margin-bottom: 0;
}

.btn-register-person i,
.btn-register-company i {
    margin-right: 5px;
}

/* Informações de Benefícios */
.register-info {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.register-benefits-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #333;
}

.register-benefits-header i {
    color: #ffc107;
    font-size: 16px;
}

.register-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.register-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.register-benefits-list li i {
    color: #28a745;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.register-benefits-list li span {
    flex: 1;
}

/* Ajustes para Mobile */
@media (max-width: 767px) {
    .auth-box {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .auth-box:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .social-buttons-group {
        flex-direction: column;
    }
    
    .form-group-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password-wrapper {
        text-align: left;
        width: 100%;
    }
    
    .register-option-card {
        padding: 15px;
    }
}

/* Melhorias de Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Animações suaves */
.auth-modal .modal-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de foco melhorados */
.auth-form-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Melhoria nos botões */
.btn-custom {
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-custom:active {
    transform: translateY(0);
}

/* Espaçamento aprimorado */
.register-options {
    margin-top: 10px;
}

/* Separador visual entre login e registro */
@media (min-width: 768px) {
    .auth-box-login {
        border-right: 1px solid #e9ecef;
        padding-right: 25px;
    }
    
    .auth-box-register {
        padding-left: 25px;
    }
}