/**
 * Password field with in-input visibility toggle (login, register).
 * Grid overlay: input and button share one cell so the icon stays inside the field.
 */
.field .password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.field .password-field > .password-field__input {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 3.15rem;
    box-sizing: border-box;
}

.field .password-field > .password-field__toggle {
    grid-area: 1 / 1;
    justify-self: end;
    align-self: center;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0.45rem 0 0;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 9px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #64748b;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.field .password-field > .password-field__toggle:hover {
    color: #0f766e;
    border-color: rgba(13, 148, 136, 0.4);
    background: rgba(13, 148, 136, 0.12);
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.12);
}

.field .password-field > .password-field__toggle:active {
    transform: scale(0.96);
}

.field .password-field > .password-field__toggle:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 1px;
}

.field .password-field > .password-field__toggle[aria-pressed='true'] {
    color: #0f766e;
    border-color: rgba(13, 148, 136, 0.5);
    background: rgba(13, 148, 136, 0.12);
}

.field .password-field > .password-field__toggle-icon {
    font-size: 0.95rem;
    pointer-events: none;
}
