/* Nút con mắt trong ô mật khẩu.
 * Khung bọc do hien-mat-khau.js tự dựng quanh mỗi input[type=password].
 * Nút nằm đè lên ô nhập bên phải, nên ô phải chừa chỗ cho nó. */
.hien-mk {
    position: relative;
    display: block;
}

.hien-mk .form-control {
    padding-right: 2.75rem !important;
}

/* Ô về lại chữ thường (mã OTP): không còn nút nên không cần chừa chỗ. */
.hien-mk--an .form-control {
    padding-right: 1rem !important;
}

.hien-mk__nut {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7c8f93;
    cursor: pointer;
    /* Để không bị .btn ở mức trên kéo cao lên */
    min-height: 0;
}

/* display:flex ở trên thắng thuộc tính hidden, nên phải nói rõ. */
.hien-mk__nut[hidden] {
    display: none;
}

.hien-mk__nut:hover,
.hien-mk__nut:focus-visible {
    color: #206bc4;
}

.hien-mk__nut:focus-visible {
    outline: 2px solid #206bc4;
    outline-offset: -2px;
    border-radius: 6px;
}
