/* Shared password/PIN visibility control. Keep the button inside the field. */
.scve-password-wrap,
.sl-main .sl-password {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    --scve-eye-color: #19654e;
    --scve-eye-hover: #e6f1ea;
    --scve-eye-focus: #19654e;
}

.scve-login-form .scve-password-wrap > input:not([type="checkbox"]),
.scv-application .scve-password-wrap > input:not([type="checkbox"]),
.scve-password-wrap > input:not([type="checkbox"]),
.sl-main .sl-password > input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding-right: 56px;
}

.scve-password-wrap > button.scve-eye-toggle,
.sl-main .sl-password > button.scve-eye-toggle {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 4px;
    bottom: auto;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    appearance: none;
    background: transparent;
    box-shadow: none;
    color: var(--scve-eye-color);
    font: inherit;
    line-height: 1;
    text-decoration: none;
    transform: translateY(-50%);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.scve-password-wrap > button.scve-eye-toggle:hover,
.sl-main .sl-password > button.scve-eye-toggle:hover {
    background: var(--scve-eye-hover);
    box-shadow: none;
    color: var(--scve-eye-color);
}

.scve-password-wrap > button.scve-eye-toggle:focus-visible,
.sl-main .sl-password > button.scve-eye-toggle:focus-visible {
    outline: 3px solid var(--scve-eye-focus);
    outline-offset: -3px;
}

.scve-eye-toggle svg {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.scve-eye-toggle [data-eye-open][hidden],
.scve-eye-toggle [data-eye-closed][hidden] {
    display: none !important;
}

:root[data-theme="dark"] .scve-password-wrap,
:root[data-theme="dark"] .sl-main .sl-password {
    --scve-eye-color: #a3dfba;
    --scve-eye-hover: #294234;
    --scve-eye-focus: #a3dfba;
}
