/**
 * Password row: outer chrome only (A6 maqueta). Inner input has no .dc-input border/focus.
 */

.dc-access-auth-form__password-row {
    display: flex;
    align-items: center;
    gap: var(--dc-space-2);
    padding: 0 0.375rem 0 0.875rem;
    border: 1px solid var(--dc-ceniza);
    border-radius: var(--dc-radius-control);
    background: var(--dc-blanco);
    transition: border-color var(--dc-transition), box-shadow var(--dc-transition);
}

.dc-access-auth-form__password-row:focus-within {
    box-shadow: var(--dc-ring-focus);
}

.dc-access-auth-form__field--error .dc-access-auth-form__password-row,
.dc-access-auth-form__field--error .dc-access-auth-form__password-row:focus-within {
    border-color: var(--dc-error-text);
}

.dc-access-auth-form__password-row .dc-access-auth-form__password-input {
    all: unset;
    box-sizing: border-box;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    appearance: none;
    font: inherit;
    line-height: 1.25;
    color: var(--dc-tinta);
}

.dc-access-auth-form__password-row .dc-access-auth-form__password-input::placeholder {
    color: var(--dc-gris);
}

.dc-access-auth-form__password-row .dc-access-auth-form__password-input:is(:focus, :focus-visible) {
    border: 0;
    box-shadow: none;
}

.dc-access-auth-form__password-toggle {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    margin-right: var(--dc-space-1);
    border: 0;
    border-radius: var(--dc-radius-pill);
    background: transparent;
    color: var(--dc-gris);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.dc-access-auth-form__password-toggle.is-active,
.dc-access-auth-form__password-toggle:hover {
    background: var(--dc-lima-300);
    color: var(--dc-pino);
}

.dc-access-auth-form__password-toggle:is(:focus, :focus-visible) {
    outline: none;
    box-shadow: none;
}
