﻿
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.container {
    width: 100%;
    min-height: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.box-page {
    background: #fff;
    border: 1px solid #00100740;
    border-radius: 8px;
    padding: 28px 40px 28px 32px;
    width: 100%;
    min-width: 480px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-abqm {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

    .logo-abqm img {
        width: 132px;
        height: 60px;
        object-fit: contain;
    }

.title-name {
    font-size: 2rem;
    font-weight: 700;
    color: #001007BF;
    margin-bottom: 32px;
    text-align: left;
    width: 100%;
}

.form-container {
    width: 100%;
    margin-bottom: 18px;
}

.form-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #00100740;
    font-size: 16px;
    padding: 12px 16px;
    background: #fff;
}

    .form-input:focus {
        outline: none;
        border: 1px solid #001007BF;
    }

.msg {
    width: 100%;
    display: block;
    margin-bottom: 0;
    margin-top: -20px;
}

#erro-confirmacao-senha,
#tudo-pronto {
    text-align: left;
    display: block;
    margin-left: 0;
    padding-left: 2px;
    margin-top: 4px;
}

#erro-confirmacao-senha {
    color: #CB4436;
    font-size: 12px;
}

#tudo-pronto {
    color: #009640;
    font-size: 14px;
}

.check-senha {
    display: none;
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #009640;
    font-size: 1.3rem;
}

/* Floating Label */
.floating-label {
    position: relative;
    margin-bottom: 18px;
}

    .floating-label .form-input {
        padding-top: 14px;
    }

    .floating-label label {
        position: absolute;
        left: 16px;
        top: 14px;
        color: #888;
        font-size: 1.1rem;
        pointer-events: none;
        transition: 0.2s ease all;
        background: transparent;
        padding: 0 4px;
        z-index: 2;
    }

    .floating-label .form-input:focus + label,
    .floating-label .form-input:not(:placeholder-shown) + label {
        top: -8px;
        left: 12px;
        font-size: 0.9rem;
        color: #49584c;
        background: white;
    }

.form-input.erro-borda {
    border: 1.5px solid #CB4436 !important;
}

#novaConfirmacaoSenha.erro-borda + label {
    color: #CB4436 !important;
}

/* Rules */
.rules {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px 0;
    width: 100%;
    color: #49584c;
    font-size: 12px;
}

    .rules li {
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        position: relative;
        padding-left: 0;
    }


        .rules li i.bi-check-circle-fill {
            margin-right: 8px;
            opacity: 0.25;
            color: #001007BF;
            font-size: 1.1rem;
            transition: opacity 0.2s;
            font-size: 10px;
        }

        .rules li.checked i.bi-check-circle-fill {
            opacity: 1;
            color: #009640;
        }


/* Button Change Password*/
.btn-changePassword {
    background: #009640;
    color: #fff;
    font-weight: bold;
    border-radius: 9999px;
    border: none;
    padding: 12px 0;
    width: 100%;
    max-width: 200px;
    font-size: 16px;
    margin-top: 8px;
    transition: filter 0.3s;
}

    .btn-changePassword:hover {
        filter: brightness(1.1);
    }

    .btn-changePassword:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .btn-changePassword:disabled, .btn-changePassword[disabled] {
        background: #f5f5f5;
        color: #ccc;
        cursor: not-allowed;
        border: none;
    }

/* Icon eye */
.input-icone-container {
    position: relative;
}

.btn-showPassword {
    position: absolute;
    color: #001007BF;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

    .btn-showPassword:focus {
        outline: none !important;
        box-shadow: none !important;
    }


.erro-senha {
    color: #d35400;
    font-size: 0.98rem;
    margin-top: 4px;
    display: block;
}

/* Modal */
.modal-content {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: none;
    padding: 32px 28px 24px 28px;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 12px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #001007BF;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .modal-title .icon-error {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        flex-shrink: 0;
        display: inline-block;
        vertical-align: middle;
    }

.modal-body {
    font-size: 1rem;
    color: #001007BF;
    padding-top: 12px;
    padding-bottom: 24px;
}

.modal-footer {
    border-top: none;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 12px;
}

.btn-close {
    background: #CB4436;
    color: #fff;
    border-radius: 9999px;
    font-weight: 600;
    padding: 8px 24px;
    border: none;
    outline: none;
    transition: filter 0.2s;
}

    .btn-close:hover {
        filter: brightness(1.1);
    }

    .btn-close:focus {
        outline: none !important;
        box-shadow: none !important;
    }

@media (max-width: 768px) {
    .container {
        min-height: 0;
        padding: 20px;
    }

    .box-page {
        min-width: 0;
        padding: 0;
        border: none;
    }

    .title-name {
        font-size: 18px;
        margin-bottom: 20px;
        width: 100%;
    }

    .btn-changePassword {
        max-width: 100%;
    }

    .modal-title {
        font-size: 18px;
    }
}
