/* Text entry is left-to-right. Reserve the physical right end for the action. */
.hamza-password-control {
    position: relative;
    min-width: 0;
}

.hamza-password-control > input {
    display: block;
}

.hamza-login #password,
.hamza-password-control.is-interactive > input {
    padding-right: 70px !important;
}

.hamza-login #password::-ms-reveal,
.hamza-password-control.is-interactive > input::-ms-reveal {
    display: none;
}

.hamza-login #togglePassword,
.hamza-password-control > button {
    position: absolute;
    inset: 2px 2px 2px auto;
    transform: none;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 60px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #f6faf7;
    color: #104531;
    opacity: 1;
    font: 700 13px/1.4 Tahoma, Arial, sans-serif;
    cursor: pointer;
}

.hamza-password-control > button[hidden] { display: none; }
.hamza-login #togglePassword::before { content: 'إظهار'; }
.hamza-login #togglePassword.hide::before { content: 'إخفاء'; }

.hamza-login #togglePassword:hover,
.hamza-password-control > button:hover {
    background: #e6f1eb;
}

.hamza-login #togglePassword:focus-visible,
.hamza-password-control > button:focus-visible {
    outline: 2px solid #0056a8;
    outline-offset: -2px;
}
