.secret-field {
    position: relative;
}

/* Inter draws password discs smaller until the field is focused. */
.secret-field input[type="password"] {
    font-family: Arial, Helvetica, sans-serif;
}

.secret-field.has-value input {
    padding-right: 40px;
}

@keyframes secret-field-autofill {
    from {
        opacity: 0.99;
    }
    to {
        opacity: 1;
    }
}

.secret-field input:-webkit-autofill {
    animation-name: secret-field-autofill;
    animation-duration: 0.01s;
}

.secret-field input::-ms-reveal,
.secret-field input::-ms-clear {
    display: none;
}

.secret-field-toggle {
    position: absolute;
    top: 0;
    right: 8px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--raisin-70);
    line-height: 0;
    cursor: pointer;
    touch-action: none;
}

.secret-field-toggle .eye-shut {
    display: inline-block;
}

.secret-field-toggle .eye-open {
    display: none;
}

.secret-field.is-revealed .secret-field-toggle .eye-shut {
    display: none;
}

.secret-field.is-revealed .secret-field-toggle .eye-open {
    display: inline-block;
}

.secret-field-toggle:disabled,
.secret-field-toggle.x-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.secret-field-toggle[hidden] {
    display: none;
}
