.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field > input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 44px !important;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.password-toggle:hover {
    color: #64748b;
    background: rgba(0, 0, 0, 0.06);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.55);
    outline-offset: 2px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.auth-page .password-toggle,
body.app-hyperspeed .password-toggle {
    color: rgba(255, 255, 255, 0.65);
}

.auth-page .password-toggle:hover,
body.app-hyperspeed .password-toggle:hover {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.15);
}
