/* Estilos para o Modal de Verificação de Acesso */

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Estilo para o fundo do modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Estilo para o container do modal */
.modal-dialog {
    max-width: 500px;
    margin: 0 auto;
}

/* Estilo para o conteúdo do modal */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: white;
}

/* Estilo para o cabeçalho do modal */
.modal-header {
    background: linear-gradient(135deg, #1B3160 0%, #fd9000 100%);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
    position: relative;
    justify-content: center;
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Estilo para o corpo do modal */
.modal-body {
    padding: 2rem;
    background-color: #fff;
}

.modal-body p {
    color: #333;
    margin-bottom: 1.5rem;
}

.modal-body p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1B3160;
}

/* Estilo para o campo de senha */
.modal-body .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-body .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.modal-body .form-control:focus {
    border-color: #fd9000;
    box-shadow: 0 0 0 0.2rem rgba(253, 144, 0, 0.25);
}

/* Estilos para as mensagens de feedback */
.senha-feedback {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: none;
    color: #dc3545;
    transition: all 0.3s ease;
}

.senha-feedback.show {
    display: block;
    animation: fadeIn 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-weight: 500;
}

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

.senha-feedback.error {
    color: #dc3545;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.senha-feedback.success {
    color: #28a745;
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.senha-feedback.info {
    color: #17a2b8;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

/* Adiciona um pequeno ícone antes do texto */
.senha-feedback.error::before {
    content: "⚠️ ";
}

.senha-feedback.success::before {
    content: "✅ ";
}

.senha-feedback.info::before {
    content: "ℹ️ ";
}

.modal-body .text-danger {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    color: #dc3545;
}

.modal-body .text-info {
    color: #0dcaf0;
}

.modal-body .text-success {
    color: #28a745;
}

/* Estilo para o botão */
.btn-primary, 
.btn-verificar {
    background: linear-gradient(135deg, #1B3160 0%, #fd9000 100%);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 49, 96, 0.2);
    width: 100%;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary:hover,
.btn-verificar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 49, 96, 0.3);
    background: linear-gradient(135deg, #fd9000 0%, #1B3160 100%);
}

/* Remoção do checkbox não necessário */
.form-check-input {
    display: none !important;
}

/* Estilos para o botão de mostrar/ocultar senha */
.input-group {
    position: relative;
}

.input-group .btn-outline-secondary {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background-color: transparent;
    z-index: 10;
}

.input-group .btn-outline-secondary:hover {
    background-color: transparent;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
    outline: none;
}

.form-control {
    padding-right: 40px;
}

/* Estilos para o fallback do modal (quando o Bootstrap não carrega) */
.modal-backdrop-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-fallback {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
}

.modal-fallback h5 {
    background: linear-gradient(135deg, #1B3160 0%, #fd9000 100%);
    color: white;
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.modal-fallback p {
    color: #333;
    padding: 0 1.5rem;
    margin: 1.5rem 0;
}

.modal-fallback p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1B3160;
    margin-top: 1.5rem;
}

.modal-fallback hr {
    margin: 0;
    border-color: #e0e0e0;
}

.modal-fallback .input-group {
    display: flex;
    position: relative;
    margin: 0 1.5rem;
    width: calc(100% - 3rem);
}

.modal-fallback input[type="password"],
.modal-fallback input[type="text"] {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 40px;
}

.modal-fallback input[type="password"]:focus,
.modal-fallback input[type="text"]:focus {
    border-color: #fd9000;
    outline: none;
}

.modal-fallback button#togglePasswordFallback {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: transparent !important;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    z-index: 10;
}

.modal-fallback button#verificarBtn {
    background: linear-gradient(135deg, #1B3160 0%, #fd9000 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    margin: 1.5rem;
    width: calc(100% - 3rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-fallback button#verificarBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 49, 96, 0.3);
    background: linear-gradient(135deg, #fd9000 0%, #1B3160 100%);
}

/* Responsividade */
@media (max-width: 576px) {
    .modal-dialog, .modal-fallback {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-body, .modal-header, .modal-footer {
        padding: 1rem;
    }
    
    .modal-body p:first-child {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-verificar {
        padding: 0.5rem 1.5rem;
    }
} 