body {
    background-image: url('../img/bg_1.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    overflow: hidden !important;
    margin: 0;
}

/* Centralização perfeita no mobile */
@media (max-width: 576px) {
    .container-fluid.min-vh-100,
    .d-flex.justify-content-center.align-items-center.min-vh-100.w-100 {
        min-height: 100dvh !important;
        height: 100dvh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0px !important;
    }
    .wrapper_indent {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 8px;
        margin-right: 8px;
    }
}


/* Estilos para o container flutuante */
.wrapper_indent {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 600px;
    max-height: 600px;
    overflow-y: auto;
    margin: 20px auto; /* Centraliza o wrapper_indent */
}

.wrapper_indent:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Styles for focused state of form control to emphasize user input field */
.form-control:focus {
    border-color: #7233A1 !important;
    box-shadow: none !important;
    border: 2px solid #7233A1 !important;
}

/* Estilo para input com erro */
.input-error {
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
}

/* Estilo para o placeholder quando houver erro */
.input-error::placeholder {
    color: #dc3545 !important;
    opacity: 1 !important;
}

/* Estilo para input com sucesso */
.input-success {
    border: 1px solid #28a745 !important;
    color: #28a745 !important;
}

/* Estilo para o placeholder quando houver sucesso */
.input-success::placeholder {
    color: #28a745 !important;
    opacity: 1 !important;
}

/* Estilo para input desabilitado */
input:disabled {
    background-color: #fff !important;
    opacity: 1 !important;
}

/* Estilos do Modal de Recuperação */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 20px;
}

.modal-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 30px;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 6px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.25rem;
    line-height: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modal-body {
    padding: 20px 0;
    text-align: center;
}

.modal-body h3 {
    margin: 12px 0px ;
    color: #555;
    font-size: 1.2rem;
    font-weight: 400;
}

.recovery-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.btn-recovery {
    background-color: #7233a1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-recovery:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-recovery:not(:disabled):hover {
    background-color: #5d2a82;
}

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

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: none;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
}

.input-group-text:hover {
    background-color: #e9ecef;
}

/* Estilo do botão de mostrar/ocultar senha */
#togglePassword {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: none;
    outline: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
}

#togglePassword i {
    color: #7233a1;
    font-size: 1.2rem;
    transition: color 0.2s;
}

#togglePassword:hover i {
    color: #5d2a82;
}

#togglePassword:focus {
    box-shadow: none;
}

/* Garante que o input não tenha borda direita quando estiver com o botão */
.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none;
}

/* Estilo base para o input */
.form-control {
    color: #7233a1;
    height: 50px !important;
    border-radius: 5px !important;
    box-shadow: none;
    border: 1px solid #ddd;
    font-size: 18px !important;
}


.login100-form {
    background-color: #fff;
}

.login100-form-btn {
    background-color: #9c27b0;
    color: #fff;
    font-weight: 555;
    font-size: 18px;
    border-radius: 5px; 
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login100-form-btn:disabled,
.login100-form-btn[disabled] {
    background-color: #cccccc !important;
    color: #fff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.login100-form-btn:not(:disabled):not([disabled]):hover {
    transform: translateY(-6px) translateZ(0);
    opacity: 0.9;
    background-color: #9c27b0;
}

.login100-form-btn:not(:disabled):not([disabled]):active {
    transform: translateY(1px);
    box-shadow: none;
    background-color: #9c27b0;
}

.img-log-login {
    width: 300px;
}

.recover-password {
    color: #7233a1;
    cursor: pointer;
}

.wrap-login100 {
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error-message {
    top: 0;
    margin-bottom: 20px;
    left: 0;
    right: 0;
    color: #fff;
    font-size: 16px;
    background-color: #dc3545;
    padding: 15px 20px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.error-message button.close:hover {
    opacity: 1;
}


/* Samsung s24, iphone 12 pro */
@media screen and (max-width: 768px) {
    .img-log-login {
        width: 250px;
        height: 250px;
    }
}

.container-shadow {
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    padding: 20px;
    transition: all 0.3s ease;
}

/* Utilitário de cor do tema */
.text-theme {
    color: #7233a1 !important;
}

/* Botão do SweetAlert2 com dimensões solicitadas */
.swal-confirm-btn {
    background-color: #7233a1 !important;
    color: #fff !important;
    height: 40px !important;
    width: 100% !important;
}

/* Botão de confirmação SweetAlert2 personalizado */
.swal2-btn-confirm {
    background-color: #28a745 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.375rem 0.75rem !important;
    height: 40px !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.375rem !important;
    box-shadow: none !important;
}

.swal2-btn-confirm:hover {
    opacity: 0.8 !important;
}

/* Estado desabilitado igual ao botão de login */
.swal2-btn-confirm:disabled,
.swal2-btn-confirm.btn-disabled {
    background-color: #cccccc !important;
    color: #fff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* SweetAlert2: ações em largura total e botão igual ao input */
.swal2-actions {
width: 100% !important;
display: block !important; /* evita centralização flex impedindo 100% */
margin: 0 !important;
padding: 0px 28px !important; /* igual ao padding padrão do popup */
box-sizing: border-box !important;
}
.swal2-actions .btn-recovery {
width: 100% !important;
display: inline-flex !important;
justify-content: center !important;
align-items: center !important;
}

/* Garantir que botões estilizados do SweetAlert2 não ultrapassem a largura */
.swal2-actions .swal2-styled {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

/* Estado desabilitado para o botão padrão do projeto */
.btn-recovery:disabled,
.btn-recovery.btn-disabled {
background-color: #cccccc !important;
color: #fff !important;
cursor: not-allowed !important;
box-shadow: none !important;
transform: none !important;
opacity: 1 !important;
}

.validate-input {
    position: relative; /* Necessário para posicionar o tooltip */
}

/* Borda do input em erro quando .alert-validate está presente */
.validate-input.alert-validate .input100,
.validate-input.alert-validate .form-control {
    border-color: #dc3545 !important;
}

/* Tooltip com a mensagem do data-validate */
.validate-input.alert-validate::after {
    content: attr(data-validate);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 2000;
    pointer-events: none;
}

/* Seta do tooltip */
.validate-input.alert-validate::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #dc3545 transparent transparent transparent;
    z-index: 1999;
    pointer-events: none;
}

.swal2-container {
    padding: 0px 18px!important;
}